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øOP12mo ago
And my code
No description
No description
Unsmart
Unsmart12mo ago
Add logs to your code and tail it is what I would do
Arnø
ArnøOP12mo ago
ok thanks
Want results from more Discord servers?
Add your server