mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
use .markAsDeleted() instead of setting .isDeleted manually
This commit is contained in:
@@ -864,8 +864,8 @@ class Note extends AbstractEntity {
|
||||
this.utcDateModified = dateUtils.utcNowDateTime();
|
||||
}
|
||||
|
||||
markAsDeleted() {
|
||||
sql.execute("UPDATE notes SET isDeleted = 1 WHERE noteId = ?", [this.noteId]);
|
||||
markAsDeleted(deleteId = null) {
|
||||
sql.execute("UPDATE notes SET isDeleted = 1, deleteId = ? WHERE noteId = ?", [deleteId, this.noteId]);
|
||||
|
||||
// FIXME: this needs to be published into entity_changes (for sync and becca cleanup)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user