From c888b1f40102b7e0fbebedd2bb15c880a0a876b3 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 31 Jul 2020 10:00:53 -0600 Subject: [PATCH] It's a Context Transaction (ctxn) now --- src/stores/local-echo/GenericEchoChamber.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stores/local-echo/GenericEchoChamber.ts b/src/stores/local-echo/GenericEchoChamber.ts index f2d4648e81..7a2173f702 100644 --- a/src/stores/local-echo/GenericEchoChamber.ts +++ b/src/stores/local-echo/GenericEchoChamber.ts @@ -80,12 +80,12 @@ export abstract class GenericEchoChamber extends Ev this.cache.get(key).txn.cancel(); } - const txn = this.context.beginTransaction(auditName, runFn); - this.cacheVal(key, targetVal, txn); // set the cache now as it won't be updated by the .when() ladder below. + const ctxn = this.context.beginTransaction(auditName, runFn); + this.cacheVal(key, targetVal, ctxn); // set the cache now as it won't be updated by the .when() ladder below. - txn.when(TransactionStatus.Pending, () => this.cacheVal(key, targetVal, txn)) + ctxn.when(TransactionStatus.Pending, () => this.cacheVal(key, targetVal, ctxn)) .when(TransactionStatus.Error, () => revertFn()); - txn.run(); + ctxn.run(); } }