From 32c7545faae4f33c94a045408789c9b9ef7de53a Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 24 Aug 2024 02:38:40 -0700 Subject: refactor(Data): rename database references --- src/lib/Database/IndexedDB/user.ts | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/lib/Database/IndexedDB/user.ts (limited to 'src/lib/Database/IndexedDB/user.ts') diff --git a/src/lib/Database/IndexedDB/user.ts b/src/lib/Database/IndexedDB/user.ts deleted file mode 100644 index e7285a07..00000000 --- a/src/lib/Database/IndexedDB/user.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type { AniListAuthorisation } from '$lib/Data/AniList/identity'; -import Dexie, { type Table } from 'dexie'; - -export interface User { - id: number; - user: AniListAuthorisation; - lastNotificationID: number | null; -} - -export class UserDatabase extends Dexie { - users: Table; - - constructor() { - super('users'); - this.version(1).stores({ - users: 'id, user, lastNotificationID' - }); - - this.users = this.table('users'); - } -} - -export const database = new UserDatabase(); -- cgit v1.2.3