Update updated_at right away if offline

This commit is contained in:
Mo Bitar
2018-05-04 13:00:11 -05:00
parent 45132f21d1
commit 6903dd735a

View File

@@ -50,6 +50,10 @@ class SyncManager {
}
syncOffline(items, callback) {
// Update all items updated_at to now
for(var item of items) {
item.updated_at = new Date();
}
this.writeItemsToLocalStorage(items, true, function(responseItems){
// delete anything needing to be deleted
for(var item of items) {