u
This commit is contained in:
@@ -666,6 +666,7 @@ export default class LibDashStore {
|
||||
|
||||
this.purge = storePurge(provider);
|
||||
this.initialize = storeInitialize(provider);
|
||||
this.transaction = (fn) => provider.transaction(fn);
|
||||
|
||||
return this.initialize().then(() => this);
|
||||
}
|
||||
|
||||
@@ -69,6 +69,9 @@ export default function create(provider) {
|
||||
return shape(row);
|
||||
};
|
||||
|
||||
if (tx) {
|
||||
return run(makeRunner(provider, tx), tx);
|
||||
}
|
||||
if (typeof provider?.transaction === 'function') {
|
||||
return provider.transaction((runner, innerTx) => run(runner, innerTx));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user