Skip to content

Commit

Permalink
πŸ› Prevent important list being wiped out on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
homostellaris committed Aug 11, 2024
1 parent 6e77523 commit 1f7021d
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions components/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 1f7021d

Please sign in to comment.