Why return is not read in transactions? #3900
Unanswered
positivedeveloper36
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My code like this :
I had
trx
infindOrFail
,save
,updateOrCreateMany
,delete
. But if I run the query it's not readreturn { success: true }
Is there something wrong with adding
trx
to the update process?If I check on the preview tab in the console, itu return empty object, no properties. Whereas the update prosess success. I check in table of database, it success create, delete & update. Should it return
{ success: true }
How can I solve this problem?
Please help. Thanks
Note :
I follow this reference :: https://docs.adonisjs.com/guides/database/transactions
Solved :
I had find a solution like this ::
Beta Was this translation helpful? Give feedback.
All reactions