mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
use trilium version number in asset paths to avoid caching issues
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user