Skip to content

Commit

Permalink
fix: change notification message
Browse files Browse the repository at this point in the history
  • Loading branch information
inh2613 committed Oct 25, 2023
1 parent e2fa17d commit a8c33fb
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,12 @@ public void execute(OCRDto ocrDto, String username) throws IOException {
throwable -> {
System.out.println("등록 실패");
throwable.printStackTrace();
// notification 저장(알림 실패 저장)
notificationService.save(userService.read(username), null,
NotificationType.REGISTERED,
"기프티콘 등록에 실패했습니다.");
//Gpt 에러일 경우
if (throwable instanceof GptResponseException) {
fcmNotificationService.sendNotification("기프티콘 등록 실패", "자동 등록에 실패했습니다. 수동 등록을 이용해 주세요.", username);
notificationService.save(userService.read(username), null,
NotificationType.REGISTERED,
"Gpt 응답이 올바르지 않습니다.");
"자동 등록에 실패했습니다. 수동 등록을 이용해 주세요.");
} else {
fcmNotificationService.sendNotification("기프티콘 등록 실패", "이미 등록된 기프티콘 입니다.", username);
notificationService.save(userService.read(username), null,
Expand Down

0 comments on commit a8c33fb

Please sign in to comment.