Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class DashboardService(
siteId = siteId,
visitStatus = checkedInStatus,
pageable = PageRequest.of(0, 10,
Sort.by(Sort.Direction.DESC, "checkoutTime"))
Sort.by(Sort.Direction.DESC, "checkInTime"))
).content.map { it.toResponse() }

val overdueVisitors = visitorRepository.findAllOverdue(
Expand All @@ -75,7 +75,7 @@ class DashboardService(
siteId = siteId,
visitStatus = checkedOutStatus,
pageable = PageRequest.of(0, 10,
Sort.by(Sort.Direction.DESC, "checkoutTime"))
Sort.by(Sort.Direction.DESC, "checkOutTime"))
).content.map { it.toResponse() }

return DashboardFeed(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ZoneService(
val site = siteRepository.findById(siteId)
.orElseThrow { ResourceNotFoundException("Site", siteId) }

if (!zoneRepository.existsBySiteIdAndName(siteId, request.name)) {
if (zoneRepository.existsBySiteIdAndName(siteId, request.name)) {
throw ConflictException("Zone with this name already exists under this site")
}

Expand Down
Loading