Skip to content

Commit

Permalink
[hotfix] chore: 버그 해결용 출력문 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
elive7 committed Dec 17, 2024
1 parent 3b6c073 commit 99a6b04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ private void blockRecordIfExceeds(Long recordId) {
public void resolve(Long reportId, ApprovalStatus approvalStatus, String threadTs) {
Report report = reportRepository.findById(reportId).orElseThrow(
() -> {
System.err.println("report not found");
throw new ReportException(ErrorMessage.REPORT_NOT_FOUND);
}
);
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/org/recordy/server/slack/domain/Slack.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ public class Slack {
public Slack(HttpServletRequest request) {
JSONObject json = getJsonFrom(request);

System.out.println(json);

JSONObject action = json.getJSONArray("actions").getJSONObject(0);
JSONObject value = new JSONObject(action.getString("value"));

Expand All @@ -35,6 +33,9 @@ public Slack(HttpServletRequest request) {

if (actionId.contains("report")) {
approvalStatus = ApprovalStatus.valueOf(value.getString("approvalStatus"));
System.out.println("actionId = " + actionId);
System.out.println("reportId = " + reportId);
System.out.println("approvalStatus = " + approvalStatus);
}
}

Expand Down

0 comments on commit 99a6b04

Please sign in to comment.