From 9fe5dc679aba9b0bb3b4d743ddd0ead341ccb8d6 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 5 Nov 2024 14:21:58 +0000 Subject: [PATCH] check harder for connectibility `allSettled` does not throw if a promise is rejected, so `check_connect` never actually failed --- packages/backend/scripts/check_connect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/scripts/check_connect.js b/packages/backend/scripts/check_connect.js index f33a450325..17b198ef62 100644 --- a/packages/backend/scripts/check_connect.js +++ b/packages/backend/scripts/check_connect.js @@ -57,4 +57,4 @@ const promises = Array connectToPostgres() ]); -await Promise.allSettled(promises); +await Promise.all(promises);