src/upgrades/1.0.0/theme_to_active_plugins.js
'use strict';
const db = require('../../database');
module.exports = {
name: 'Adding theme to active plugins sorted set',
timestamp: Date.UTC(2015, 11, 23),
method: async function () {
const themeId = await db.getObjectField('config', 'theme:id');
await db.sortedSetAdd('plugins:active', 0, themeId);
},
};