File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
packages/firestore/src/local Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -277,11 +277,18 @@ export class SimpleDb {
277
277
// make this a test-only setting.
278
278
// // Horrible hack to verify that idempotent functions can be run more
279
279
// // than once.
280
- // const transactionFnResult = (idempotent && attemptNumber === 1
281
- // ? transactionFn(transaction)
282
- // : PersistencePromise.resolve({} as T)
283
- // ).next(() => transactionFn(transaction))
284
280
const transactionFnResult = transactionFn ( transaction )
281
+ // TODO(schmidt-sebastian): Remove this code/comment or find a way to
282
+ // make this a test-only setting.
283
+ // // Horrible hack to verify that idempotent functions can be run more
284
+ // // than once.
285
+ // .next(result => {
286
+ // if (idempotent && attemptNumber == 1) {
287
+ // class DOMException {}
288
+ // throw new DOMException();
289
+ // }
290
+ // return result;
291
+ // })
285
292
. catch ( error => {
286
293
// Abort the transaction if there was an error.
287
294
transaction . abort ( error ) ;
You can’t perform that action at this time.
0 commit comments