mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
added basic CLS support with re-entrant transactions
This commit is contained in:
@@ -55,7 +55,9 @@ router.put('/:noteId', auth.checkApiAuth, wrap(async (req, res, next) => {
|
||||
const sourceId = req.headers.source_id;
|
||||
const dataKey = protected_session.getDataKey(req);
|
||||
|
||||
await notes.updateNote(noteId, note, dataKey, sourceId);
|
||||
await sql.doInTransaction(async () => {
|
||||
await notes.updateNote(noteId, note, dataKey, sourceId);
|
||||
});
|
||||
|
||||
res.send({});
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user