mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
db upgrades are now handled transparently in the background without bothering the user, closes #119
This commit is contained in:
@@ -21,10 +21,7 @@ class Entity {
|
||||
contentToHash += "|" + this[propertyName];
|
||||
}
|
||||
|
||||
// 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);
|
||||
}
|
||||
this["hash"] = utils.hash(contentToHash).substr(0, 10);
|
||||
}
|
||||
|
||||
async save() {
|
||||
|
||||
Reference in New Issue
Block a user