Update context transaction states
This commit is contained in:
parent
16ebcf70c9
commit
7645fe6b23
4 changed files with 14 additions and 14 deletions
|
@ -84,7 +84,7 @@ export abstract class GenericEchoChamber<C extends EchoContext, K, V> extends Ev
|
|||
this.cacheVal(key, targetVal, txn); // set the cache now as it won't be updated by the .when() ladder below.
|
||||
|
||||
txn.when(TransactionStatus.Pending, () => this.cacheVal(key, targetVal, txn))
|
||||
.when(TransactionStatus.DoneError, () => revertFn());
|
||||
.when(TransactionStatus.Error, () => revertFn());
|
||||
|
||||
txn.run();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue