Преглед на файлове

fix: nav items expect to be of type array (#6813)

Co-authored-by: Mangaokaku <davidmartin@vt.edu>
MangaOtaku преди 1 година
родител
ревизия
f0bb48c9c8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      server/models/sites.mjs

+ 1 - 1
server/models/sites.mjs

@@ -152,7 +152,7 @@ export class Site extends Model {
     await WIKI.db.navigation.query().insert({
       id: newSite.id,
       siteId: newSite.id,
-      items: JSON.stringify([])
+      items: []
     })
 
     WIKI.logger.debug(`Creating new DB storage for site ${newSite.id}`)