Skip to content

Commit

Permalink
fix: 날짜 형식 변경 / 테이블 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongh00 committed Jan 19, 2024
1 parent 8de562f commit 96e5adb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public class AlarmUseCase {

private final static String NOTICE_TITLE = "새로운 공지를 확인하세요";
private final static String COMMENT_TITLE = "새로운 댓글이 달렸어요";
private static final DateTimeFormatter LAST_DATE_FORMATTER = DateTimeFormatter.ofPattern("MM/dd HH:mm");
private static final DateTimeFormatter NOW_DATE_FORMATTER = DateTimeFormatter.ofPattern("yy/MM/dd HH:mm");
private static final DateTimeFormatter LAST_DATE_FORMATTER = DateTimeFormatter.ofPattern("yy/MM/dd HH:mm");
private static final DateTimeFormatter NOW_DATE_FORMATTER = DateTimeFormatter.ofPattern("MM/dd HH:mm");

public void registerFcmToken(String token) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public interface AlarmRepository extends JpaRepository<Alarm, Long> {

void deleteAlarmById(Long alarmId);

@Query("SELECT COUNT(a) > 0 FROM Alarm a WHERE a.id = :alarmId AND a.member.id = :memberId")
@Query("SELECT COUNT(a) > 0 FROM AlarmView a WHERE a.alarm.id = :alarmId AND a.member.id = :memberId")
boolean existsByAlarmIdAndMemberId(@Param("alarmId") Long alarmId, @Param("memberId") Long memberId);

}

0 comments on commit 96e5adb

Please sign in to comment.