move to centralized
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m17s

This commit is contained in:
2025-12-02 19:59:02 -08:00
parent 585373dc30
commit 79bf264762

View File

@@ -60,10 +60,10 @@ const createPool = (): Pool => {
export const getPool = (): Pool => {
// This function acts as a singleton accessor for the database pool.
if (!poolInstance) {
console.log('[DB POOL] Creating NEW pool instance.');
//console.log('[DB POOL] Creating NEW pool instance.');
poolInstance = createPool();
} else {
console.log(`[DB POOL] Returning EXISTING pool instance. ID: ${poolInstance.poolId}`);
//} else {
//console.log(`[DB POOL] Returning EXISTING pool instance. ID: ${poolInstance.poolId}`);
}
return poolInstance;
};