From f8af4a5df7ab5db6bdd562b76f9247aba1ffdab6 Mon Sep 17 00:00:00 2001 From: Omer Sabic Date: Sun, 2 Jun 2024 10:47:01 +0200 Subject: [PATCH] calling certs service only when domain is changed --- src/routes/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/dashboard.js b/src/routes/dashboard.js index 897f710..372b56f 100644 --- a/src/routes/dashboard.js +++ b/src/routes/dashboard.js @@ -314,7 +314,7 @@ export const dashboardRoutes = (fastify, _, done) => { return; } - if (env.CERTS_URL) { + if (env.CERTS_URL && site.domain !== req.body.domain) { await fetch(`http://${env.CERTS_URL}/provision`, { method: "POST", body: JSON.stringify({