Compare commits

...

2 commits

Author SHA1 Message Date
zadam 0948853539 release 0.63.3 2024-03-03 06:58:18 +01:00
zadam 0ad337c8e8 add API method to erase a revision #4662 2024-03-03 06:34:43 +01:00
3 changed files with 9 additions and 2 deletions

View file

@ -2,7 +2,7 @@
"name": "trilium",
"productName": "Trilium Notes",
"description": "Trilium Notes",
"version": "0.63.2-beta",
"version": "0.63.3",
"license": "AGPL-3.0-only",
"main": "electron.js",
"bin": {

View file

@ -161,6 +161,13 @@ class BRevision extends AbstractBeccaEntity {
return this.getAttachments().filter(attachment => attachment.title === title)[0];
}
/**
* Revisions are not soft-deletable, they are immediately hard-deleted (erased).
*/
eraseRevision() {
require("../../services/erase.js").eraseRevisions([this.revisionId]);
}
beforeSaving() {
super.beforeSaving();

View file

@ -1 +1 @@
module.exports = { buildDate:"2024-02-17T22:47:50+01:00", buildRevision: "15677f71785fd81298b94df70855233d1578629c" };
module.exports = { buildDate:"2024-03-03T06:58:18+01:00", buildRevision: "0ad337c8e806ba84d48d7b97aa46df52d9f236a8" };