Commit 1eda746
committed
fix: prevent unhandled promise rejection from restoration transaction cleanup
Add catch handler to restoration transaction's isPersisted promise to prevent
unhandled rejection when rollback() is called during cleanup. The rollback
calls reject(undefined) which would otherwise cause an unhandled rejection error.1 parent cc5d8ba commit 1eda746
File tree
1 file changed
+7
-0
lines changed- packages/offline-transactions/src/executor
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
272 | 279 | | |
273 | 280 | | |
274 | 281 | | |
| |||
0 commit comments