Skip to content

Commit

Permalink
feat: wrapp filter query value around double quoutes
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Dec 10, 2024
1 parent 1408cdd commit 13612a8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/collections/infra/repositories/CollectionsRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,13 @@ export class CollectionsRepository extends ApiRepository implements ICollections

if (collectionSearchCriteria?.filterQueries) {
collectionSearchCriteria.filterQueries.forEach((filterQuery) => {
queryParams.append(GetCollectionItemsQueryParams.FILTERQUERY, filterQuery)
const [filterQueryKey, filterQueryValue] = filterQuery.split(':')

const filterQueryValueWithQuotes = `"${filterQueryValue}"`

const filterQueryToSet = `${filterQueryKey}:${filterQueryValueWithQuotes}`

queryParams.append(GetCollectionItemsQueryParams.FILTERQUERY, filterQueryToSet)
})
}
}
Expand Down

0 comments on commit 13612a8

Please sign in to comment.