Skip to content

Commit

Permalink
Fixed PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitgoyalgloballogic committed Dec 2, 2021
1 parent c3affe2 commit 4b7ae63
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,13 @@ public struct SearchRequest: Codable {
self.ranges = ranges

self.facetQueries = facetQueries?.queries
self.facetFields = nil
if let facetFields = facetFields {
self.facetFields = ["facets": facetFields.fields]
} else {
self.facetFields = nil
}

self.facetIntervals = nil
if let facetIntervals = facetIntervals {
self.facetIntervals = ["intervals": facetIntervals.intervals]
} else {
self.facetIntervals = nil
}
}
}

0 comments on commit 4b7ae63

Please sign in to comment.