mirror of
https://github.com/standardnotes/mobile.git
synced 2026-04-20 06:09:11 -04:00
Update updated_at right away if offline
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user