use trilium version number in asset paths to avoid caching issues

This commit is contained in:
zadam
2022-10-27 20:34:53 +02:00
parent b499640db8
commit 75bd38885b
6 changed files with 34 additions and 14 deletions

View File

@@ -191,6 +191,11 @@ function deleteBranch(req) {
const last = req.query.last === 'true';
const eraseNotes = req.query.eraseNotes === 'true';
const branch = becca.getBranch(req.params.branchId);
if (!branch) {
return [404, `Branch ${req.params.branchId} not found`];
}
const taskContext = TaskContext.getInstance(req.query.taskId, 'delete-notes');
const deleteId = utils.randomString(10);