mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-02-22 14:18:31 -06: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