core: fix sqlite crash on calling delete with empty array

This commit is contained in:
Abdullah Atta
2024-02-22 23:05:40 +05:00
parent f240242217
commit a4120436be

View File

@@ -351,6 +351,8 @@ export class Notes implements ICollection {
}
private async _delete(moveToTrash = true, ...ids: string[]) {
if (ids.length <= 0) return;
if (moveToTrash) {
await this.db.trash.add("note", ids);
} else {