compile error

This commit is contained in:
Michael Simard
2021-01-09 12:29:14 -06:00
parent 7807b46fcd
commit afa2a81402

View File

@@ -626,7 +626,7 @@ struct StatsController: RouteCollection {
return Match.query(on: req.db) return Match.query(on: req.db)
.filter(\.$players ~~ "\(playerId)") .filter(\.$players ~~ "\(playerId)")
.all().map { (matches) -> (Stats) in .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) return Match.query(on: req.db)
.filter(\.$players !~ "\(playerId)") .filter(\.$players !~ "\(playerId)")
.all().map { (matches) -> (Stats) in .all().map { (matches) -> (Stats) in
return getStats(matches: matches) return self.getStats(matches: matches)
} }
} }