From 4b7ae63a2cab2cf3eb1a932656bb64a4e0731855 Mon Sep 17 00:00:00 2001 From: ankitgoyalgloballogic Date: Thu, 2 Dec 2021 10:55:09 +0530 Subject: [PATCH] Fixed PR comments --- .../Classes/Swaggers/Models/SearchRequest.swift | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/AlfrescoContent/AlfrescoContent/Classes/Swaggers/Models/SearchRequest.swift b/AlfrescoContent/AlfrescoContent/Classes/Swaggers/Models/SearchRequest.swift index 2ae499f..b1af790 100644 --- a/AlfrescoContent/AlfrescoContent/Classes/Swaggers/Models/SearchRequest.swift +++ b/AlfrescoContent/AlfrescoContent/Classes/Swaggers/Models/SearchRequest.swift @@ -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 } } }