Update updated_at right away if offline

This commit is contained in:
Mo Bitar
2018-05-04 13:00:04 -05:00
parent f90273ac34
commit 2b87f50c0b

View File

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