sync with date
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user