Commit Graph

16 Commits

Author SHA1 Message Date
rizky 74a70e99ca fix database connection error handling to prevent app crashes
- Add proper error handling in database connection attempts
- Set g.db to null when connection fails to prevent subsequent crashes
- Add null check in execQuery to throw meaningful error when DB unavailable
- Improve API endpoint to return 503 status when database is unavailable
- Enhanced logging for better debugging of connection issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 09:07:03 +07:00
Rizky 67deac8114 adding batch upsert to server.ts 2024-11-08 14:34:47 +07:00
Rizky 2b9c84270f fix env 2024-06-26 15:03:13 +07:00
Rizky ee779a1e56 fix 2024-06-21 18:07:07 +07:00
Rizky e66bd5fc1f fix db pull 2024-03-20 14:01:57 +07:00
Rizky 402e92ce02 fix db pull 2024-03-20 13:29:50 +07:00
Rizky 645f6d1739 wip fix 2024-02-17 20:15:53 +07:00
Rizky a71b32a9a8 wip fix 2024-02-13 20:32:27 +07:00
Rizky 2345b69ac3 wip fix 2024-01-29 09:58:58 +07:00
Rizky ab2b133d2e wip fix 2024-01-25 14:21:42 +07:00
Rizky cb94533436 wip fix 2024-01-25 14:21:23 +07:00
Rizky 5b13c3c911 wip fix 2024-01-25 13:54:02 +07:00
Rizky 3b983c1cea fix 2024-01-25 13:51:52 +07:00
Rizky b85c5cc48d wip fix 2024-01-25 13:43:36 +07:00
Rizky a63cc40afe wip fix 2024-01-24 07:35:44 +07:00
Rizky 1bd21cf6a7 wip fix 2024-01-23 23:03:13 +07:00