Skip to content

Commit 54ee58c

Browse files
authored
Merge pull request #261 from rush-db/fix/int-txn-optional-close-after-commit
Make int txn optionally closed after commit
2 parents fa9fd05 + 9b25c07 commit 54ee58c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/warm-rats-pull.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'rushdb-core': patch
3+
'rushdb-docs': patch
4+
'@rushdb/javascript-sdk': patch
5+
'rushdb-dashboard': patch
6+
'rushdb-website': patch
7+
---
8+
9+
Make int txn optionally closed after commit

platform/core/src/database/interceptors/request-cleanup.interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class RequestCleanupInterceptor implements NestInterceptor {
4545
}
4646
} finally {
4747
try {
48-
await internalTransaction.close()
48+
await internalTransaction?.close()
4949
} catch (e) {
5050
Logger.error('[RequestCleanupInterceptor] Internal tx finalize error', e)
5151
}

0 commit comments

Comments
 (0)