-
Good evening, I use adonis v6 + lucid + mysql 8XXX. So I want to insert a new row into my mysql table. My problem occurs when the mysql driver detects a "duplicate key" error:
here is my code (on controller) :
I don't understand why this happens (this is the first time I've encountered this problem).
Thank you for your help and have a nice day. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
arfff ... I found my error thank you |
Beta Was this translation helpful? Give feedback.
arfff ...
I found my error
'tenant.save()'
I had forgotten to put
"await"
in front of'await tenant.save()'
....thank you