@onehat/data 1.15.5 → 1.15.6
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
|
@@ -407,6 +407,15 @@ class OfflineRepository extends MemoryRepository {
|
|
|
407
407
|
await this._storageSetValue(LAST_SYNC, date);
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Clears the date when this Repository was last synced with remote.
|
|
413
|
+
* Used when this is the "local" side of a LocalFromRemoteRepository
|
|
414
|
+
*/
|
|
415
|
+
clearLastSync = async () => {
|
|
416
|
+
await this._storageDeleteValue(LAST_SYNC);
|
|
417
|
+
}
|
|
418
|
+
|
|
410
419
|
};
|
|
411
420
|
|
|
412
421
|
OfflineRepository.className = 'Offline';
|