Commit Graph

10 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 4bf174a09c fix batch upsert 2024-10-09 14:16:03 +07:00
Rizky 0825b55d82 fix 2024-08-29 10:10:49 +07:00
Rizky 332061d5d0 fix 2024-06-28 00:25:38 +07:00
Rizky 1009040c53 fix 2024-04-27 08:53:21 +07:00
Rizky 2211d36aa9 fix 2024-04-27 08:51:41 +07:00
Rizky 084675a811 wip fix 2024-03-07 16:28:15 +07:00
Rizky 90678d1fae wip fix 2024-03-07 11:16:16 +07:00
Rizky bc9d3e3d3f fix 2024-01-29 09:56:27 +07:00
Rizky 1bd21cf6a7 wip fix 2024-01-23 23:03:13 +07:00