From aa4648027f7f5aeb48482453d94ffb728bf788db Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Fri, 30 Jan 2026 05:00:05 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fix=20backend=20health=20check?= =?UTF-8?q?=20by=20correcting=20duplicate=20function=20call=20and=20improv?= =?UTF-8?q?ing=20readability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/utils/deploy-pokedex.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/utils/deploy-pokedex.js b/code/utils/deploy-pokedex.js index 71b23f1..3202c13 100644 --- a/code/utils/deploy-pokedex.js +++ b/code/utils/deploy-pokedex.js @@ -251,7 +251,11 @@ async function deployLocal(config) { if (!frontendHealthy) throw new Error('Frontend health check failed'); console.log(' ✅ Frontend healthy'); - const backendHealthy = await healthCheck('localhost', config.backendPort, '/health'); + const backendHealthy = await healthCheck( + 'localhost', + config.backendPort, + '/health' + ); const backendHealthy = await healthCheck('localhost', config.backendPort); // Backend might need more time if (!backendHealthy) throw new Error('Backend health check failed');