Skip to content

Commit

Permalink
feat: prefix CP query #26
Browse files Browse the repository at this point in the history
  • Loading branch information
rmelisson committed Apr 27, 2021
1 parent fd3b883 commit 645f122
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/src/elastic/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,8 @@ const addressFilter = (address: string | undefined) =>
address
? [
{
match: {
cp: {
query: address ? address.replace(/\D/g, "") : "",
},
prefix: {
cp: address ? address.replace(/\D/g, "") : "",
},
},
{
Expand Down

0 comments on commit 645f122

Please sign in to comment.