mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 01:06:36 +01:00
synchronization of transactions using promise so only one can be active
This commit is contained in:
@@ -59,8 +59,8 @@ router.put('/:noteId', async (req, res, next) => {
|
||||
});
|
||||
|
||||
router.delete('/:noteTreeId', async (req, res, next) => {
|
||||
await sql.doInTransaction(async db => {
|
||||
await notes.deleteNote(db, req.params.noteTreeId);
|
||||
await sql.doInTransaction(async () => {
|
||||
await notes.deleteNote(req.params.noteTreeId);
|
||||
});
|
||||
|
||||
res.send({});
|
||||
|
||||
Reference in New Issue
Block a user