From 94fb1cbac2529ff3202327e268f7fa9d89a68dec Mon Sep 17 00:00:00 2001 From: pawelblaszczyk5 Date: Fri, 5 Jan 2024 14:47:31 +0100 Subject: [PATCH] Revert optimization attempts --- prisma/deploy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prisma/deploy.ts b/prisma/deploy.ts index 6c875a0..cbc2ca6 100644 --- a/prisma/deploy.ts +++ b/prisma/deploy.ts @@ -38,6 +38,8 @@ const deployPrismaMigrationsWithRetrying = () => { if (!isDatabaseUnavailable) throw error; + await tryWakingUpDatabase(); + const delayMs = BASE_DELAY * 2 ** currentRetry; currentRetry += 1; @@ -54,5 +56,4 @@ const deployPrismaMigrationsWithRetrying = () => { return execute(); }; -await tryWakingUpDatabase(); await deployPrismaMigrationsWithRetrying();