From 1f7021dc971cfe6cf845056220721450a09f9712 Mon Sep 17 00:00:00 2001 From: Daniel Metcalfe Date: Sun, 11 Aug 2024 20:48:13 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Prevent=20important=20list=20bei?= =?UTF-8?q?ng=20wiped=20out=20on=20logout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/db.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/components/db.ts b/components/db.ts index a73e444..3520db3 100644 --- a/components/db.ts +++ b/components/db.ts @@ -61,23 +61,6 @@ export class DexieStarfocus extends Dexie { databaseUrl: 'https://zy0myinc2.dexie.cloud', requireAuth: false, }) - this.on.populate.subscribe(() => { - this.on.ready.subscribe((db: DexieStarfocus) => { - db.lists.put({ - type: '#important', - order: [], - }) - }, false) - }) - this.on.ready.subscribe(async (db: DexieStarfocus) => { - const importantList = await db.lists.get('#important') - if (!importantList) { - db.lists.put({ - type: '#important', - order: [], - }) - } - }, false) } }