Skip to content

Commit

Permalink
Fixed findRandomHabit method in HabitRepo
Browse files Browse the repository at this point in the history
  • Loading branch information
Maryna-511750 committed Dec 10, 2024
1 parent b8057ca commit 8557df1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dao/src/main/java/greencity/repository/HabitRepo.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ public interface HabitRepo extends JpaRepository<Habit, Long>, JpaSpecificationE
value = """
WITH sampled_habits AS (
SELECT *
FROM habits
FROM habits
TABLESAMPLE SYSTEM(15)
WHERE is_deleted = false
LIMIT 1
),
fallback_habit AS (
SELECT *
FROM habits
FROM habits
WHERE is_deleted = false
LIMIT 1
)
Expand Down

0 comments on commit 8557df1

Please sign in to comment.