mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 03:46:37 +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]);
 | 
			
		||||
 | 
			
		||||
        if (this.dateModified) {
 | 
			
		||||
            this.dateModified = dateUtils.localNowDateTime();
 | 
			
		||||
 | 
			
		||||
            sql.execute(`UPDATE ${entityName} SET dateModified = ? WHERE ${this.constructor.primaryKeyName} = ?`,
 | 
			
		||||
                [dateUtils.localNowDateTime(), entityId]);
 | 
			
		||||
                [this.dateModified, entityId]);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this.addEntityChange(true);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user