diff options
Diffstat (limited to 'src/lib/Database/IDB/chapters.ts')
| -rw-r--r-- | src/lib/Database/IDB/chapters.ts | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/Database/IDB/chapters.ts b/src/lib/Database/IDB/chapters.ts index 571c16e1..56ac379b 100644 --- a/src/lib/Database/IDB/chapters.ts +++ b/src/lib/Database/IDB/chapters.ts @@ -1,22 +1,22 @@ -import Dexie, { type Table } from 'dexie'; +import Dexie, { type Table } from "dexie"; export interface Chapter { - id: number; - chapters: number | null; - volumes: number | null; + id: number; + chapters: number | null; + volumes: number | null; } export class ChapterDatabase extends Dexie { - chapters: Table<Chapter>; + chapters: Table<Chapter>; - constructor() { - super('chapters'); - this.version(1).stores({ - chapters: 'id, chapters, volumes' - }); + constructor() { + super("chapters"); + this.version(1).stores({ + chapters: "id, chapters, volumes", + }); - this.chapters = this.table('chapters'); - } + this.chapters = this.table("chapters"); + } } export const database = new ChapterDatabase(); |