Skip to content

Commit b1a4873

Browse files
committed
address feedbacks
1 parent 99e6d59 commit b1a4873

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.changeset/spotty-bananas-fry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
'@firebase/firestore': major
2+
'@firebase/firestore': patch
33
---
44

55
Fixed a bug where a rejected promise with an empty message in a transaction would cause a timeout. (https://github.com/firebase/firebase-js-sdk/issues/9147)

packages/firestore/src/core/transaction_runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class TransactionRunner<T> {
112112
}
113113
}
114114

115-
private isRetryableTransactionError(error: Error): boolean {
115+
private isRetryableTransactionError(error?: Error): boolean {
116116
if (error?.name === 'FirebaseError') {
117117
// In transactions, the backend will fail outdated reads with FAILED_PRECONDITION and
118118
// non-matching document versions with ABORTED. These errors should be retried.

0 commit comments

Comments
 (0)