feat: admin storage - save + list

This commit is contained in:
NGPixel
2018-06-25 22:04:47 -04:00
parent 2500d8b054
commit bb102c3356
11 changed files with 311 additions and 40 deletions

View File

@@ -319,6 +319,9 @@ module.exports = () => {
await WIKI.db.editors.refreshEditorsFromDisk()
await WIKI.db.editors.query().patch({ isEnabled: true }).where('key', 'markdown')
// Load storage targets
await WIKI.db.storage.refreshTargetsFromDisk()
// Create root administrator
WIKI.logger.info('Creating root administrator...')
await WIKI.db.users.query().delete().where({