diff --git a/Sources/App/Controllers/StatsController.swift b/Sources/App/Controllers/StatsController.swift index 5cc0dc0..ef8645c 100644 --- a/Sources/App/Controllers/StatsController.swift +++ b/Sources/App/Controllers/StatsController.swift @@ -626,7 +626,7 @@ struct StatsController: RouteCollection { return Match.query(on: req.db) .filter(\.$players ~~ "\(playerId)") .all().map { (matches) -> (Stats) in - return getStats(matches: matches) + return self.getStats(matches: matches) } } @@ -635,7 +635,7 @@ struct StatsController: RouteCollection { return Match.query(on: req.db) .filter(\.$players !~ "\(playerId)") .all().map { (matches) -> (Stats) in - return getStats(matches: matches) + return self.getStats(matches: matches) } }