Skip to content

Commit

Permalink
Revert "πŸ› [Bug] ν”„λ‘ νŠΈμ™€ λ°±μ—”λ“œκ°„ URL μ£Όμ†Œ λ‹€λ¦„μœΌλ‘œ μΈν•œ μŠ¬λž™ 메세지 였λ₯˜ μˆ˜μ • #1014 (#1015)"
Browse files Browse the repository at this point in the history
This reverts commit c8cd3f3.
  • Loading branch information
seyeon22222 committed Dec 17, 2024
1 parent 7680abd commit 642d979
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ public void slackConfirmAgendaTeam(Agenda agenda, AgendaTeam newTeam) {
agendaTeamProfiles.stream().map(atp -> atp.getProfile().getIntraId())
.forEach(intraId -> messageSender.send(intraId, message));
if (agenda.getMaxTeam() == agenda.getCurrentTeam()) {
String toHostMessage = snsMessageUtil.agendaHostMaxTeamSatisfiedMessage(agenda);
String toHostMessage = snsMessageUtil.agendaHostMinTeamSatisfiedMessage(agenda);
messageSender.send(agenda.getHostIntraId(), toHostMessage);
} else if (agenda.getMinTeam() == agenda.getCurrentTeam()) {
String toHostMessage = snsMessageUtil.agendaHostMinTeamSatisfiedMessage(agenda);
String toHostMessage = snsMessageUtil.agendaHostMaxTeamSatisfiedMessage(agenda);
messageSender.send(agenda.getHostIntraId(), toHostMessage);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@ public class SnsMessageUtil {
private static final String SUBJECT = "ν–‰μ‚¬μš”μ •πŸ§šμœΌλ‘œλΆ€ν„° λ„μ°©ν•œ νŽΈμ§€";

public String addAgendaAnnouncementMessage(Agenda agenda, AgendaAnnouncement newAnnounce) {
String link = URL + "agenda_key=" + agenda.getAgendaKey() + "/announcement/" + newAnnounce.getId();
return SUBJECT
+ "\n" + agenda.getTitle() + "의 μƒˆλ‘œμš΄ 곡지사항이 λ„μ°©ν–ˆμŠ΅λ‹ˆλ‹€."
+ "\n" + newAnnounce.getTitle()
+ "\n" + URL + "detail?" + "agenda_key=" + agenda.getAgendaKey();
+ "\n" + "$$" + link + "$$";
}

public String confirmAgendaMessage(Agenda agenda) {
String link = URL + "agenda_key=" + agenda.getAgendaKey();
return SUBJECT
+ "\n" + agenda.getTitle() + "이 ν™•μ •λ˜μ—ˆμŠ΅λ‹ˆλ‹€."
+ "\n" + "행사가 ν™•μ •λ˜μ—ˆμŠ΅λ‹ˆλ‹€. μ‹œμž‘μΌμžμ™€ μž₯μ†Œλ₯Ό ν™•μΈν•΄μ£Όμ„Έμš”!"
+ "\n" + URL + "detail?" + "agenda_key=" + agenda.getAgendaKey();
+ "\n" + "$$" + link + "$$";
}

public String cancelAgendaMessage(Agenda agenda) {
Expand All @@ -33,12 +34,12 @@ public String cancelAgendaMessage(Agenda agenda) {
}

public String finishAgendaMessage(Agenda agenda) {
String link = URL + "detail?" + "agenda_key=" + agenda.getAgendaKey();
String link = URL + "agenda_key=" + agenda.getAgendaKey();
if (agenda.getIsRanking()) {
return SUBJECT
+ "\n" + agenda.getTitle() + "이 μ’…λ£Œλ˜μ—ˆμŠ΅λ‹ˆλ‹€."
+ "\n" + "행사가 μ„±κ³΅μ μœΌλ‘œ μ’…λ£Œλ˜μ—ˆμŠ΅λ‹ˆλ‹€. μˆ˜κ³ ν•˜μ…¨μŠ΅λ‹ˆλ‹€!"
+ "\n" + "κ²°κ³Ό 확인 :" + link;
+ "\n" + "κ²°κ³Ό 확인 $$" + link + "$$";
} else {
return SUBJECT
+ "\n" + agenda.getTitle() + "이 μ’…λ£Œλ˜μ—ˆμŠ΅λ‹ˆλ‹€."
Expand Down Expand Up @@ -78,13 +79,13 @@ public String agendaHostMinTeamSatisfiedMessage(Agenda agenda) {
+ "\n" + agenda.getTitle() + "행사가 μ΅œμ†Œ νŒ€ 개수λ₯Ό μΆ©μ‘±ν–ˆμŠ΅λ‹ˆλ‹€."
+ "\n" + "행사λ₯Ό ν™•μ •ν•  수 μžˆμŠ΅λ‹ˆλ‹€."
+ "\n" + "ν™•μ •μ‹œμ—” λ‹€λ₯Έ νŒ€λ“€μ΄ μ°Έκ°€ ν•  수 μ—†μœΌλ‹ˆ, μ£Όμ˜ν•˜μ„Έμš”!"
+ "\n" + URL + "detail?" + "agenda_key=" + agenda.getAgendaKey();
+ "\n" + "$$" + URL + "agenda_key=" + agenda.getAgendaKey() + "$$";
}

public String agendaHostMaxTeamSatisfiedMessage(Agenda agenda) {
return SUBJECT
+ "\n" + agenda.getTitle() + "행사가 μ΅œλŒ€ νŒ€ 개수λ₯Ό μΆ©μ‘±ν–ˆμŠ΅λ‹ˆλ‹€."
+ "\n" + "행사λ₯Ό ν™•μ •ν•˜κ³  진행 μ‹œκ°„κ³Ό μž₯μ†Œλ₯Ό κ³΅μ§€μ‚¬ν•­μœΌλ‘œ μ „λ‹¬ν•΄μ£Όμ„Έμš”."
+ "\n" + URL + "detail?" + "agenda_key=" + agenda.getAgendaKey();
+ "\n" + "$$" + URL + "agenda_key=" + agenda.getAgendaKey() + "$$";
}
}

0 comments on commit 642d979

Please sign in to comment.