Skip to content

Commit

Permalink
HotFix: 중복 환경변수 이분화 (#197)
Browse files Browse the repository at this point in the history
fix: 중복 환경변수 이분화
  • Loading branch information
GitJIHO authored Nov 8, 2024
1 parent 3fa6f2e commit 9b41fec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testcode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
SPRING_DATASOURCE_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
SPRING_JPA_HIBERNATE_DDL_AUTO: "update"
JWT_SECRET: ${{ secrets.JWT_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_NOTICE_WEBHOOK_URL: ${{ secrets.SLACK_NOTICE_WEBHOOK_URL }}
SLACK_CHARGE_REQUEST_URL: ${{ secrets.SLACK_CHARGE_REQUEST_URL }}
SLACK_WITHDRAW_REQUEST_URL: ${{ secrets.SLACK_WITHDRAW_REQUEST_URL }}
run: ./gradlew test
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
@Service
public class SlackMessageService {

@Value("${slack.webhook.url}")
private String slackWebhookUrl;
@Value("${slack.notice.webhook.url}")
private String slackNoticeWebhookUrl;

@Value("${slack.charge.request.url}")
private String chargeRequestUrl;
Expand Down Expand Up @@ -64,6 +64,6 @@ public void sendStyledSlackMessage(String title, String description, String acti

HttpEntity<String> entity = new HttpEntity<>(payload, headers);

restTemplate.exchange(slackWebhookUrl, HttpMethod.POST, entity, String.class);
restTemplate.exchange(slackNoticeWebhookUrl, HttpMethod.POST, entity, String.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class SinittoApplicationTests {
@Value("${jwt.secret}")
private String jwtSecret;

@Value("${slack.webhook.url}")
private String slackWebhookUrl;
@Value("${slack.notice.webhook.url}")
private String slackNoticeWebhookUrl;

@Value("${slack.charge.request.url}")
private String chargeRequestUrl;
Expand Down

0 comments on commit 9b41fec

Please sign in to comment.