Skip to content

Commit c72c2dd

Browse files
remove stale changeset. cleanup LockedAsyncDatabaseAdapter exception handling.
1 parent 093312e commit c72c2dd

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.changeset/unlucky-jokes-doubt.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/web/src/db/adapters/LockedAsyncDatabaseAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export class LockedAsyncDatabaseAdapter
319319
holdId = this.requiresHolds ? await this.baseDB.markHold() : null;
320320
return await callback();
321321
} catch (ex) {
322-
if (ex instanceof ConnectionClosedError || (ex instanceof Error && ex.name === 'NoModificationAllowedError')) {
322+
if (ex instanceof ConnectionClosedError) {
323323
if (this.options.reOpenOnConnectionClosed && !this.databaseOpenPromise && !this.closing) {
324324
// Immediately re-open the database. We need to miss as little table updates as possible.
325325
this.reOpenInternalDB();

0 commit comments

Comments
 (0)