From c88098e05e93072e6f5371e2946a2785596c41a0 Mon Sep 17 00:00:00 2001 From: Michael Simard Date: Sun, 31 Oct 2021 00:11:38 -0500 Subject: [PATCH] change mapConfigs button to getMapConfigs --- Sources/App/Controllers/StatsController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/App/Controllers/StatsController.swift b/Sources/App/Controllers/StatsController.swift index 23cb4a8..3333994 100644 --- a/Sources/App/Controllers/StatsController.swift +++ b/Sources/App/Controllers/StatsController.swift @@ -740,7 +740,7 @@ struct StatsController: RouteCollection { let matches = Match.query(on: db).sort( \.$date).all() - let mapConfigs = mapConfigs(db: db) + let mapConfigs = getMapConfigs(db: db) return matches.and(dashboardStats).and(mapConfigs).map { arg -> (OverallStats) in @@ -804,7 +804,7 @@ struct StatsController: RouteCollection { } - func mapConfigs(db: Database) -> EventLoopFuture<[MapConfig]> { + func getMapConfigs(db: Database) -> EventLoopFuture<[MapConfig]> { return Map.query(on: db).all().map { map in return map.map { m in @@ -819,7 +819,7 @@ struct StatsController: RouteCollection { let matches = Match.query(on: req.db).all() - let mapConfigs = mapConfigs(db: req.db) + let mapConfigs = getMapConfigs(db: req.db) return matches.and(mapConfigs).map { matches, mapConfigs in