move to centralized
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m17s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m17s
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user