mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	isErased fixes
This commit is contained in:
		| @@ -466,7 +466,7 @@ function saveNoteRevision(note) { | ||||
|     const revisionCutoff = dateUtils.utcDateStr(new Date(now.getTime() - noteRevisionSnapshotTimeInterval * 1000)); | ||||
|  | ||||
|     const existingNoteRevisionId = sql.getValue( | ||||
|         "SELECT noteRevisionId FROM note_revisions WHERE noteId = ? AND isErased = 0 AND utcDateCreated >= ?", [note.noteId, revisionCutoff]); | ||||
|         "SELECT noteRevisionId FROM note_revisions WHERE noteId = ? AND utcDateCreated >= ?", [note.noteId, revisionCutoff]); | ||||
|  | ||||
|     const msSinceDateCreated = now.getTime() - dateUtils.parseDateTime(note.utcDateCreated).getTime(); | ||||
|  | ||||
| @@ -759,6 +759,8 @@ function duplicateSubtree(origNoteId, newParentNoteId) { | ||||
|         throw new Error('Duplicating root is not possible'); | ||||
|     } | ||||
|  | ||||
|     log.info(`Duplicating ${origNote} subtree into ${newParentNoteId}`); | ||||
|  | ||||
|     const origNote = repository.getNote(origNoteId); | ||||
|     // might be null if orig note is not in the target newParentNoteId | ||||
|     const origBranch = origNote.getBranches().find(branch => branch.parentNoteId === newParentNoteId); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user