mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix setting becca's dateModified after marking as deleted
This commit is contained in:
		| @@ -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); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user