in Sources/XCMetricsBackendLib/Statistics/Repositories/SQLStatisticsRepository.swift [51:63]
func getDayCounts(from: Date, to: Date, using eventLoop: EventLoop) -> EventLoopFuture<[DayCount]> {
return DayCount.query(on: db)
.filter(\.$id >= from)
.filter(\.$id <= to)
.sort(\.$id)
.all()
.flatMap { counts in
return eventLoop.makeSucceededFuture(
self.fillDays(dayStatistics: counts, from: from, to: to)
)
}
}