From 20ff5b5b72d956eb8167cd7b820379080ec3baa6 Mon Sep 17 00:00:00 2001 From: tigattack <10629864+tigattack@users.noreply.github.com> Date: Mon, 22 Sep 2025 01:59:48 +0100 Subject: [PATCH] refactor(backend): update DB wait env var names --- backend/src/config/database.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/config/database.js b/backend/src/config/database.js index 3f146ad..be7048e 100644 --- a/backend/src/config/database.js +++ b/backend/src/config/database.js @@ -56,8 +56,8 @@ async function checkDatabaseConnection(prisma) { // Wait for database to be available with retry logic async function waitForDatabase(prisma, options = {}) { - const maxAttempts = options.maxAttempts || parseInt(process.env.DB_MAX_ATTEMPTS) || 30; - const waitInterval = options.waitInterval || parseInt(process.env.DB_WAIT_INTERVAL) || 2; + const maxAttempts = options.maxAttempts || parseInt(process.env.PM_DB_CONN_MAX_ATTEMPTS) || 30; + const waitInterval = options.waitInterval || parseInt(process.env.PM_DB_CONN_WAIT_INTERVAL) || 2; console.log(`Waiting for database connection (max ${maxAttempts} attempts, ${waitInterval}s interval)...`);