sync with date

This commit is contained in:
Mo Bitar
2017-01-08 22:11:55 -06:00
parent 5e1d045847
commit 1bc2486f0e
4 changed files with 9 additions and 11 deletions

View File

@@ -47,7 +47,6 @@ class Item {
alternateUUID() {
this.uuid = Neeto.crypto.generateUUID();
console.log("Generating new UUID", this.uuid);
}
setDirty(dirty) {
@@ -108,12 +107,12 @@ class Item {
allReferencedObjects() {
// must override
return null;
return [];
}
referencesAffectedBySharingChange() {
// should be overriden to determine which references should be decrypted/encrypted
return null;
return [];
}
isPublic() {

View File

@@ -281,7 +281,7 @@ angular.module('app.frontend')
return;
}
console.log("handle unsaved", unsaved);
console.log("Handle unsaved", unsaved);
for(var mapping of unsaved) {
var itemResponse = mapping.item;
var item = modelManager.findItem(itemResponse.uuid);
@@ -295,7 +295,7 @@ angular.module('app.frontend')
}
}
this.sync(null);
this.syncWithOptions(null, {additionalFields: ["created_at", "updated_at"]});
}
this.handleItemsResponse = function(responseItems, omitFields) {