Skip to content

Commit

Permalink
[VigilanceAreas] Don't archive vigilance areas that are at all times
Browse files Browse the repository at this point in the history
  • Loading branch information
claire2212 committed Jan 20, 2025
1 parent dd50bc6 commit 06ec13b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ interface IDBVigilanceAreaRepository : JpaRepository<VigilanceAreaModel, Int> {
"""
UPDATE vigilance_areas
SET is_archived = TRUE
WHERE computed_end_date IS NOT NULL AND computed_end_date < NOW() AND is_archived IS FALSE
WHERE computed_end_date IS NOT NULL
AND computed_end_date < NOW()
AND is_archived IS FALSE
AND is_at_all_times IS FALSE
""",
nativeQuery = true,
)
Expand Down

0 comments on commit 06ec13b

Please sign in to comment.