prasi-api/pkgs/api
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
..
_api_frm.ts wip fix 2024-01-23 23:03:13 +07:00
_dbs.ts fix database connection error handling to prevent app crashes 2025-09-10 09:07:03 +07:00
_deploy.ts fix 2024-11-14 18:44:16 +07:00
_file.ts add kv 2024-07-18 22:48:10 +07:00
_finfo.ts update finfo 2024-08-10 06:30:26 +07:00
_font.ts add font 2024-05-15 13:25:12 +07:00
_img.ts fix 2024-11-13 17:25:05 +07:00
_kv.ts fix 2024-07-19 21:30:23 +07:00
_notif.ts fix 2024-05-14 12:50:25 +07:00
_prasi.ts fixing hex 2024-07-29 17:58:55 +07:00
_proxy.ts fix 2024-04-17 19:05:24 +07:00
_upload.ts wip fix 2024-02-24 16:43:00 +07:00
_zip.ts fix 2024-08-08 14:45:18 +07:00