func getDayBuildTimes()

in Sources/XCMetricsBackendLib/Statistics/Repositories/SQLStatisticsRepository.swift [94:106]


    func getDayBuildTimes(from: Date, to: Date, using eventLoop: EventLoop) -> EventLoopFuture<[DayBuildTime]> {
        return DayBuildTime.query(on: db)
            .filter(\.$id >= from)
            .filter(\.$id <= to)
            .sort(\.$id)
            .all()
            .flatMap { times in
                return eventLoop.makeSucceededFuture(
                    self.fillDays(dayStatistics: times, from: from, to: to)
                )
            }

    }