We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5f4597 commit 22a6720Copy full SHA for 22a6720
src/lib/db.ts
@@ -705,6 +705,9 @@ export class JsonlDB<V extends unknown = unknown> {
705
) {
706
// Need to compress
707
task = { type: "compress", done: createDeferredPromise() };
708
+ // but catch errors!
709
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
710
+ task.done.catch(() => {});
711
} else {
712
// Take the first tasks of from the task queue
713
task = this._persistenceTasks.shift() ?? { type: "none" };
0 commit comments