Skip to content

Commit

Permalink
[fix #174] slack activeProfile 분기처리 로직 추가 (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
unanchoi authored Sep 14, 2023
1 parent d1ce20e commit b32431a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public void sendMessage(String channel, String text) {
}
}
private String getProfiles() {
return Arrays.stream(env.getActiveProfiles())
.findFirst()
.orElse("");
String activeProfile = Arrays.stream(env.getActiveProfiles()).findFirst().orElse("");
return activeProfile.equals("blue") || activeProfile.equals("green") ? "prod" : activeProfile;
}
}

0 comments on commit b32431a

Please sign in to comment.