gaoshuaixing 5 years ago
parent
commit
84c7dad0f2
1 changed files with 2 additions and 3 deletions
  1. 2 3
      app.js

+ 2 - 3
app.js

@@ -45,11 +45,10 @@ class AppBootHook {
       utils.chmodPath(storageDir, '777');
     }
     const file = storageDir + 'db.json';
-    // utils.chmodPath(file);
     const adapter = new FileSync(file);
     const db = lowdb(adapter);
-    if (!db.has('kv').value()) {
-      db.set('kv', {}).write();
+    if (!db.has('default').value()) {
+      db.set('default', {}).write();
     }
   }