Skip to content

Commit bcc778e

Browse files
committed
Fix missing ID on delete
1 parent 0319db1 commit bcc778e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export default class Markov {
185185
}
186186

187187
private async ensureSetup(): Promise<void> {
188-
if (!this.db) await this.setup();
188+
if (!this.db?.id) await this.setup();
189189
}
190190

191191
/**

0 commit comments

Comments
 (0)