mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	refactor exportcontext to taskcontext
This commit is contained in:
		| @@ -390,7 +390,9 @@ async function updateNote(noteId, noteUpdates) { | ||||
| } | ||||
|  | ||||
| /** @return {boolean} - true if note has been deleted, false otherwise */ | ||||
| async function deleteBranch(branch) { | ||||
| async function deleteBranch(branch, taskContext) { | ||||
|     taskContext.increaseProgressCount(); | ||||
|  | ||||
|     if (!branch || branch.isDeleted) { | ||||
|         return false; | ||||
|     } | ||||
| @@ -413,7 +415,7 @@ async function deleteBranch(branch) { | ||||
|         await note.save(); | ||||
|  | ||||
|         for (const childBranch of await note.getChildBranches()) { | ||||
|             await deleteBranch(childBranch); | ||||
|             await deleteBranch(childBranch, taskContext); | ||||
|         } | ||||
|  | ||||
|         for (const attribute of await note.getOwnedAttributes()) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user