@onehat/data 1.19.27 → 1.19.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -175,7 +175,7 @@ class OfflineRepository extends MemoryRepository {
|
|
|
175
175
|
let storageResult;
|
|
176
176
|
try {
|
|
177
177
|
storageResult = await this._storageSetValue(entity.id, entity.getOriginalData());
|
|
178
|
-
this._addToIndex(entity.id);
|
|
178
|
+
await this._addToIndex(entity.id);
|
|
179
179
|
} catch (e) {
|
|
180
180
|
// Revert to clone
|
|
181
181
|
delete this._keyedEntities[entity.id];
|
|
@@ -236,7 +236,7 @@ class OfflineRepository extends MemoryRepository {
|
|
|
236
236
|
let storageResult;
|
|
237
237
|
try {
|
|
238
238
|
storageResult = await this._storageDeleteValue(entity.id);
|
|
239
|
-
this._deleteFromIndex(entity.id);
|
|
239
|
+
await this._deleteFromIndex(entity.id);
|
|
240
240
|
} catch (e) {
|
|
241
241
|
// Revert to clone
|
|
242
242
|
this._keyedEntities[clone.id] = clone;
|