change mapConfigs button to getMapConfigs
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user