Quick fix for bug of accidentally sharing database between sites
authorNick Downing <nick@ndcode.org>
Mon, 31 Jan 2022 05:20:39 +0000 (00:20 -0500)
committerNick Downing <nick@ndcode.org>
Sat, 12 Feb 2022 01:53:36 +0000 (12:53 +1100)
_config/site.jst

index a346221..5c0194c 100644 (file)
@@ -24,7 +24,7 @@ return async (resources, root, prev_site) => {
 
       assert(this.database === undefined)
       this.database = await this.resources.ref(
-        'database',
+        `database:${this.root}`,
         async () => {
           let database = new logjson.Database()
           await database.open(this.root + '/database.logjson')