This commit is contained in:
Gwendal Roué committed 2020-04-29 14:27:58 +02:00
1 parent 82ff6cb4c5
commit ca59d706e9
1 file changed
+1 -1
@@ -27,7 +27,7 @@ private struct PlayerWithOptionalTeam: Decodable, FetchableRecord {
static let team = Player.team.forKey(CodingKeys.team)
}
extension QueryInterfaceRequest where T == Player {
extension QueryInterfaceRequest where RowDecoder == Player {
func filter(teamName: String) -> QueryInterfaceRequest<Player> {
joining(required: PlayerWithOptionalTeam.team.filter(Column("name") == teamName))
}