separate DB connection for each transaction (just for the record, will be reverted probably)

This commit is contained in:
azivner
2017-11-28 17:04:47 -05:00
parent 4d95eb0762
commit fd764f6163
21 changed files with 326 additions and 429 deletions

View File

@@ -59,8 +59,8 @@ router.put('/:noteId', async (req, res, next) => {
});
router.delete('/:noteTreeId', async (req, res, next) => {
await sql.doInTransaction(async () => {
await notes.deleteNote(req.params.noteTreeId);
await sql.doInTransaction(async db => {
await notes.deleteNote(db, req.params.noteTreeId);
});
res.send({});