mirror of
https://github.com/requarks/wiki.git
synced 2025-02-25 18:55:30 -06:00
feat: admin storage - save + list
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user