rename "note revision" to just "revision"

This commit is contained in:
zadam
2023-06-04 23:01:40 +02:00
parent cb9feab7b2
commit 779751a234
46 changed files with 275 additions and 248 deletions

View File

@@ -1,5 +1,5 @@
const log = require("./log");
const noteRevisionService = require("./note_revisions");
const revisionService = require("./revisions.js");
const becca = require("../becca/becca");
const cloningService = require("./cloning");
const branchService = require("./branches");
@@ -17,8 +17,8 @@ const ACTION_HANDLERS = {
note.deleteNote(deleteId);
},
deleteNoteRevisions: (action, note) => {
noteRevisionService.eraseNoteRevisions(note.getNoteRevisions().map(rev => rev.noteRevisionId));
deleteRevisions: (action, note) => {
revisionService.eraseRevisions(note.getRevisions().map(rev => rev.revisionId));
},
deleteLabel: (action, note) => {
for (const label of note.getOwnedLabels(action.labelName)) {