Commit Graph

16 Commits

Author SHA1 Message Date
3331c31d22 Update wallet route to use environment variables for deposit limits 2025-12-21 00:21:06 +01:00
20efdb5dc2 Add ensureStripeConfigured function and improve error handling in wallet routes 2025-12-21 00:16:56 +01:00
50a1631222 Ensure dotenv is imported for environment variable configuration 2025-12-21 00:10:42 +01:00
d67c8b5ac1 Add logging for database connection status and host 2025-12-21 00:09:28 +01:00
683eabecdd Remove redundant dotenv import from index.js 2025-12-21 00:08:42 +01:00
16cba64d03 Refactor code structure for improved readability and maintainability 2025-12-21 00:08:25 +01:00
89ef1d6e8b Add logging for SQL execution and database host in query function 2025-12-21 00:06:23 +01:00
927a1b75c6 Refactor dotenv configuration to load environment variables from multiple candidates; add error handling for missing DB_HOST 2025-12-21 00:04:02 +01:00
0aa2ae1637 Update dotenv configuration to specify environment file path 2025-12-21 00:01:41 +01:00
f638c4709b Refactor database connection logic; ensure DB is connected before starting the server 2025-12-21 00:00:46 +01:00
e97cede55c Improve error handling in Discord auth callback; return JSON error response in non-production environments 2025-12-20 23:48:34 +01:00
6e0a97df53 Add turn timer functionality to Table class; update environment configuration 2025-12-20 23:33:55 +01:00
f10714b2c8 Remove Stripe integration and related routes; update wallet routes for payment intent confirmation 2025-12-20 23:14:59 +01:00
fcbe008a5c Refactor betting logic and add error handling in Table class; implement async turn advancement 2025-12-20 23:10:03 +01:00
32db9278e4 Update MAX_BET value to 500 in .env.example 2025-12-20 23:03:44 +01:00
b673f6fcb3 Implement backend for blackjack game with Discord authentication, database integration, and WebSocket support 2025-12-20 23:02:19 +01:00