Explorar o código

fix: setup navigation

Nicolas Giard %!s(int64=6) %!d(string=hai) anos
pai
achega
fb29dd511b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      server/setup.js

+ 2 - 2
server/setup.js

@@ -207,7 +207,7 @@ module.exports = () => {
       await WIKI.models.navigation.query().delete().where({ key: 'site' })
       await WIKI.models.navigation.query().delete().where({ key: 'site' })
       await WIKI.models.navigation.query().insert({
       await WIKI.models.navigation.query().insert({
         key: 'site',
         key: 'site',
-        config: JSON.stringify([
+        config: [
           {
           {
             icon: 'home',
             icon: 'home',
             kind: 'link',
             kind: 'link',
@@ -215,7 +215,7 @@ module.exports = () => {
             target: '/',
             target: '/',
             targetType: 'home'
             targetType: 'home'
           }
           }
-        ])
+        ]
       })
       })
 
 
       WIKI.logger.info('Setup is complete!')
       WIKI.logger.info('Setup is complete!')