From cd0e58eda51a08bf4c8511618cee7d6f8ba8a2dc Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sat, 6 Jan 2024 15:13:29 +0100 Subject: [PATCH] fix: Use correct field for index --- .../de/twomartens/timetable/bahnApi/model/db/BahnTimetable.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnTimetable.kt b/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnTimetable.kt index 2a66322..7d0c562 100644 --- a/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnTimetable.kt +++ b/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnTimetable.kt @@ -14,7 +14,7 @@ import org.springframework.data.mongodb.core.mapping.Document import java.time.Instant @Document -@CompoundIndex(def = "{'eva': 1, 'dateTime': 1}", unique = true) +@CompoundIndex(def = "{'eva': 1, 'hourAtDay': 1}", unique = true) data class BahnTimetable( var eva: Eva, var hourAtDay: HourAtDay,