mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix setting becca's dateModified after marking as deleted
This commit is contained in:
parent
99cc4078c6
commit
be44431fde
@ -110,8 +110,10 @@ class AbstractEntity {
|
|||||||
[deleteId, this.utcDateModified, entityId]);
|
[deleteId, this.utcDateModified, entityId]);
|
||||||
|
|
||||||
if (this.dateModified) {
|
if (this.dateModified) {
|
||||||
|
this.dateModified = dateUtils.localNowDateTime();
|
||||||
|
|
||||||
sql.execute(`UPDATE ${entityName} SET dateModified = ? WHERE ${this.constructor.primaryKeyName} = ?`,
|
sql.execute(`UPDATE ${entityName} SET dateModified = ? WHERE ${this.constructor.primaryKeyName} = ?`,
|
||||||
[dateUtils.localNowDateTime(), entityId]);
|
[this.dateModified, entityId]);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.addEntityChange(true);
|
this.addEntityChange(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user