From d9cae7abb3fff5712893d155ca0da20453a2a866 Mon Sep 17 00:00:00 2001 From: Arnaud AMBROSELLI Date: Tue, 30 Jan 2024 11:02:11 +0100 Subject: [PATCH] fix: disable preprod env for app --- api-node/src/controllers/environment.ts | 26 ++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/api-node/src/controllers/environment.ts b/api-node/src/controllers/environment.ts index df204d2d..9d1ed8d4 100644 --- a/api-node/src/controllers/environment.ts +++ b/api-node/src/controllers/environment.ts @@ -23,20 +23,20 @@ router.get( return; } - const current_app_buildversion_in_production = 18; + // const current_app_buildversion_in_production = 18; - if ( - parseInt(appbuild as string, 10) > current_app_buildversion_in_production - ) { - res.status(200).send({ - ok: true, - data: { - environment: 'preproduction', - api_host: 'api-node-recosante-preprod.dev.fabrique.social.gouv.fr', - }, - }); - return; - } + // if ( + // parseInt(appbuild as string, 10) > current_app_buildversion_in_production + // ) { + // res.status(200).send({ + // ok: true, + // data: { + // environment: 'preproduction', + // api_host: 'api-node-recosante-preprod.dev.fabrique.social.gouv.fr', + // }, + // }); + // return; + // } res.status(200).send({ ok: true, data: {