cron job success but no database changes

Hello, I’ve setup a cron job to import datas in my D1 database. I’ve triggered the cron in local and it’s working fine. I’ve also create a route to test my cron manually online and it’s also works fine. But, when my cron is executed, my database not changes. I think the code is not executed or there is an error, but the Dashboard said it’s a success. How can I debug this ?
No description
3 Replies
Arnø
Arnø6mo ago
And my code
No description
No description
Unsmart
Unsmart6mo ago
Add logs to your code and tail it is what I would do
Arnø
Arnø6mo ago
ok thanks