store installDate and updateDate
This commit is contained in:
parent
4fd25f9e1a
commit
ff175d9af4
|
@ -424,7 +424,7 @@ function saveStyle(style) {
|
|||
return style;
|
||||
}
|
||||
codeIsUpdated = !existed || 'sections' in style && !styleSectionsEqual(style, oldStyle);
|
||||
style = Object.assign({}, oldStyle, style);
|
||||
style = Object.assign({installDate: Date.now()}, oldStyle, style);
|
||||
return write(style, store);
|
||||
});
|
||||
} else {
|
||||
|
|
|
@ -127,6 +127,7 @@ var updater = {
|
|||
|
||||
function maybeSave(json) {
|
||||
json.id = style.id;
|
||||
json.updateDate = Date.now();
|
||||
if (styleSectionsEqual(json, style)) {
|
||||
// JSONs may have different order of items even if sections are effectively equal
|
||||
// so we'll update the digest anyway
|
||||
|
|
Loading…
Reference in New Issue
Block a user