Skip to content

Commit

Permalink
Fix: snarvei, ikke forsøk å hente 0 reservasjoner
Browse files Browse the repository at this point in the history
  • Loading branch information
tendestad committed Jul 17, 2024
1 parent 6c5fdc3 commit 06a33e5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ class ReservasjonRepository(
}

private fun hentReservasjoner(set: Set<UUID>): List<Reservasjon> {
if (set.isEmpty()){
return emptyList()
}
val json: List<String> = using(sessionOf(dataSource)) {
it.run(
queryOf(
Expand Down

0 comments on commit 06a33e5

Please sign in to comment.