From 42a0847beb8f70f04745170dff2edc3e489751c1 Mon Sep 17 00:00:00 2001 From: JSoi Date: Wed, 27 Jul 2022 07:02:16 +0900 Subject: [PATCH] #42 [Fix] Nginx - Health Test --- src/main/java/com/mpnp/baechelin/util/Nginx.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/com/mpnp/baechelin/util/Nginx.java b/src/main/java/com/mpnp/baechelin/util/Nginx.java index 4dc0cd1..669eccd 100644 --- a/src/main/java/com/mpnp/baechelin/util/Nginx.java +++ b/src/main/java/com/mpnp/baechelin/util/Nginx.java @@ -15,13 +15,6 @@ public class Nginx { @GetMapping("/health") public String main() { - final List profiles = Arrays.asList(environment.getActiveProfiles()); - final List prodProfiles = Arrays.asList("prod1", "prod2"); - final String defaultProfile = profiles.get(0); - - return Arrays.stream(environment.getActiveProfiles()) - .filter(prodProfiles::contains) - .findAny() - .orElse(defaultProfile); + return "Health UP"; } }