Skip to content

Commit

Permalink
Fix: feed time native query 조건 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey-Oh committed Feb 26, 2024
1 parent f8cd6b1 commit 55d33f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public interface FeedJpaRepository extends JpaRepository<Feed, UUID> {
Optional<Feed> findByTimeAndTagAndIconAndMemo(LocalDateTime time, DefinedCode tag, DefinedCode icon, String memo);

@Modifying
@Query(value = "UPDATE feed SET isMain = 0 WHERE usersId = :usersId AND time = DATE_FORMAT(:time, '%Y%-%m-%d')", nativeQuery = true)
@Query(value = "UPDATE feed SET isMain = 0 WHERE usersId = :usersId AND DATE_FORMAT(time, '%Y%-%m-%d') = DATE_FORMAT(:time, '%Y%-%m-%d')", nativeQuery = true)
void allDisableIsMain(UUID usersId, LocalDateTime time);

}

0 comments on commit 55d33f0

Please sign in to comment.