You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
* Batch delete for Notebooks added * Extended the Folder.delete() unit test * Unit tests added for Note.batchDelete()
This commit is contained in:
@ -68,9 +68,7 @@ class Folder extends BaseItem {
|
||||
|
||||
if (options.deleteChildren) {
|
||||
const noteIds = await Folder.noteIds(folderId);
|
||||
for (let i = 0; i < noteIds.length; i++) {
|
||||
await Note.delete(noteIds[i]);
|
||||
}
|
||||
await Note.batchDelete(noteIds);
|
||||
|
||||
const subFolderIds = await Folder.subFolderIds(folderId);
|
||||
for (let i = 0; i < subFolderIds.length; i++) {
|
||||
|
Reference in New Issue
Block a user