This commit is contained in:
azivner
2018-05-22 23:51:13 -04:00
parent 0ce5caefe8
commit a372cbb2df
2 changed files with 9 additions and 1 deletions

View File

@@ -21,7 +21,10 @@ class Entity {
contentToHash += "|" + this[propertyName];
}
this["hash"] = utils.hash(contentToHash).substr(0, 10);
// this IF is to ease the migration from before hashed options, can be later removed
if (this.constructor.tableName !== 'options' || this.isSynced) {
this["hash"] = utils.hash(contentToHash).substr(0, 10);
}
}
async save() {