aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Database/IDB/chapters.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-09 00:41:20 -0700
committerFuwn <[email protected]>2024-10-09 00:41:43 -0700
commit998b63a35256ac985a5a2714dd1ca451af4dfd8a (patch)
tree50796121a9d5ab0330fdc5d7e098bda2860d9726 /src/lib/Database/IDB/chapters.ts
parentfeat(graphql): add badgeCount field (diff)
downloaddue.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.tar.xz
due.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.zip
chore(prettier): use spaces instead of tabs
Diffstat (limited to 'src/lib/Database/IDB/chapters.ts')
-rw-r--r--src/lib/Database/IDB/chapters.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/Database/IDB/chapters.ts b/src/lib/Database/IDB/chapters.ts
index 0f77f0a0..571c16e1 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';
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();