Skip to content

Build your personal knowledge base with Trilium Notes

fix undelete info messages

zadam1699646b39d8
diff --git a/src/routes/api/notes.js b/src/routes/api/notes.js
index 256b7b58ea..8ef3559db5 100644
--- a/src/routes/api/notes.js
+++ b/src/routes/api/notes.js
@@ -74,7 +74,7 @@ async function deleteNote(req) {
async function undeleteNote(req) {
const note = await repository.getNote(req.params.noteId);
- const taskContext = TaskContext.getInstance(utils.randomString(), 'undelete-notes');
+ const taskContext = TaskContext.getInstance(utils.randomString(10), 'undelete-notes');
await noteService.undeleteNote(note, note.deleteId, taskContext);