mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +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