From 4a67cf21980aee4e5424382c0a90217f03d7bac6 Mon Sep 17 00:00:00 2001 From: Sean Hatfield Date: Mon, 21 Aug 2023 15:38:18 -0700 Subject: [PATCH] Implement dumpENV if in prod environment (#207) implement dumpENV if in prod environment --- server/endpoints/system.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/endpoints/system.js b/server/endpoints/system.js index ff656a02..72b525e0 100644 --- a/server/endpoints/system.js +++ b/server/endpoints/system.js @@ -286,6 +286,7 @@ function systemEndpoints(app) { try { const body = reqBody(request); const { newValues, error } = updateENV(body); + if (process.env.NODE_ENV === "production") await dumpENV(); response.status(200).json({ newValues, error }); } catch (e) { console.log(e.message, e);