Skip to content

Commit

Permalink
fix: listingType 'both' should now work
Browse files Browse the repository at this point in the history
  • Loading branch information
rettetdemdativ committed Jun 25, 2024
1 parent 21ac86a commit 1207702
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/cosmos/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ func GetListingsQueryItemsPager(
} else if field == "postalCodes" {
postalCodeStr := mapping.value.(*string)
addQueryParam(&sb, &queryParams, "@"+field, mapping.condition, strings.Split(*postalCodeStr, ","))
} else if field == "listingType" {
listingType := mapping.value.(*string)
if *listingType != "both" {
addQueryParam(&sb, &queryParams, "@"+field, mapping.condition, *listingType)
}
} else {
addQueryParam(&sb, &queryParams, "@"+field, mapping.condition, mapping.value)
}
Expand Down

0 comments on commit 1207702

Please sign in to comment.