custom storage bugfix

This commit is contained in:
Ewout Stortenbeker 2020-05-04 09:41:33 +02:00
parent 79ac2fda4d
commit 11e64b0f0c
3 changed files with 3 additions and 3 deletions

2
dist/browser.js vendored
View file

@ -7039,7 +7039,7 @@ class CustomStorage extends Storage {
// lock = parentLock;
const lockPath = await transaction.moveToParentPath(pathInfo.parentPath);
console.assert(lockPath === pathInfo.parentPath, `transaction.moveToParentPath() did not move to the right parent path of "${path}"`)
await this._writeNodeWithTracking(pathInfo.parentPath, { [pathInfo.key]: value }, { transaction, merge: true });
await this._writeNodeWithTracking(pathInfo.parentPath, { [pathInfo.key]: updates }, { transaction, merge: true });
// });
}
else {

2
dist/browser.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1400,7 +1400,7 @@ class CustomStorage extends Storage {
// lock = parentLock;
const lockPath = await transaction.moveToParentPath(pathInfo.parentPath);
console.assert(lockPath === pathInfo.parentPath, `transaction.moveToParentPath() did not move to the right parent path of "${path}"`)
await this._writeNodeWithTracking(pathInfo.parentPath, { [pathInfo.key]: value }, { transaction, merge: true });
await this._writeNodeWithTracking(pathInfo.parentPath, { [pathInfo.key]: updates }, { transaction, merge: true });
// });
}
else {