Skip to content
Discussion options

You must be logged in to vote

This following call is not using the transaction.

await Custom.create({
      transaksi_detail: detail.id,
      name: req.name,
    });

Also the following call should be using the transaction client as well

 const transaksi = await Transaksi.findOrFail(id);

Remember SQLite has only one connection and that is blocked in the case you create a transaction and hence all queries have to use the transaction object.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ambrizals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants