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) {

View File

@@ -1377,7 +1377,6 @@ var Item = function () {
key: 'alternateUUID',
value: function alternateUUID() {
this.uuid = Neeto.crypto.generateUUID();
console.log("Generating new UUID", this.uuid);
}
}, {
key: 'setDirty',
@@ -1470,13 +1469,13 @@ var Item = function () {
key: 'allReferencedObjects',
value: function allReferencedObjects() {
// must override
return null;
return [];
}
}, {
key: 'referencesAffectedBySharingChange',
value: function referencesAffectedBySharingChange() {
// should be overriden to determine which references should be decrypted/encrypted
return null;
return [];
}
}, {
key: 'isPublic',
@@ -2188,7 +2187,7 @@ var Tag = function (_Item3) {
return;
}
console.log("handle unsaved", unsaved);
console.log("Handle unsaved", unsaved);
var _iteratorNormalCompletion4 = true;
var _didIteratorError4 = false;
var _iteratorError4 = undefined;
@@ -2223,7 +2222,7 @@ var Tag = function (_Item3) {
}
}
this.sync(null);
this.syncWithOptions(null, { additionalFields: ["created_at", "updated_at"] });
};
this.handleItemsResponse = function (responseItems, omitFields) {

File diff suppressed because one or more lines are too long