From 95832d34f711eddc916bf9f6befbb1976729c204 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 31 May 2022 22:17:51 +0200 Subject: [PATCH] fix: versions --- prisma/seed.cjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prisma/seed.cjs b/prisma/seed.cjs index 6dfa030d3..fb30b0c2e 100644 --- a/prisma/seed.cjs +++ b/prisma/seed.cjs @@ -70,7 +70,8 @@ async function main() { } }); } - if (compare('2.9.2', version) >= 0) { + const versions = ['2.9.2', '2.9.3']; + if (versions.includes(version)) { // Force stop Coolify Proxy, as it had a bug in < 2.9.2. TrustProxy + api.insecure try { await asyncExecShell(`docker stop -t 0 coolify-proxy && docker rm coolify-proxy`);