thecodeholic/laravel-vue-ecommerce

Invalid datetime format

Opened this issue · 0 comments

Hello Zura and all.
I'm developing an app based on your tutorials. Now I'm trying to set the multiple image feature and I'm getting an issue when trying to edit a product uploading an image.
The error:
"SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect INTEGER value: '82336de8-10c2-4753-b23f-acaa57efdb47' (Connection: mysql, SQL: update product_images set position = 2, product_images.updated_at = 2024-06-03 13:41:32 where id = 82336de8-10c2-4753-b23f-acaa57efdb47)"
The thing is that it only occurs with existing products. So the create function works fine, not the update. I've been reading a lot and I believe the error comes from de uuid package of node. I've installed the dependencies and tryed to create a tsconfig.json file and declared the module in a uuid.d.ts file but nothing seems to be working. Can you give me a hint about this issue. I ran out of ideas.
Thank you in advance!