Skip to content

Commit

Permalink
Merge pull request #467 from mcdappdev/master
Browse files Browse the repository at this point in the history
Fix for incorrect Or/And serialization
  • Loading branch information
tanner0101 authored May 2, 2018
2 parents 99ff18d + 28010b7 commit 8f22ef2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Fluent/Query/Filter/QueryFilter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ extension QueryBuilder {
@discardableResult
public func group(_ relation: QueryGroupRelation, closure: @escaping GroupClosure) rethrows -> Self {
let sub = copy()
sub.query.filters.removeAll()
try closure(sub)
return addFilter(.group(relation, sub.query.filters))
}
Expand Down

0 comments on commit 8f22ef2

Please sign in to comment.