closeio / closeio-node

An Unofficial Close.io API wrapper for Node.js.
19 stars 18 forks source link

Lead search doesn't work on fields with spaces #4

Closed gflandre closed 6 years ago

gflandre commented 10 years ago

Create a Lead with a custom field called "Foo bar" and set its value to "test".

This should work:

closeio.lead.search({
  'custom.Foo bar': 'test'
})

But it returns an empty array.

curl -XGET "https://app.close.io/api/v1/lead/?query=%22custom.Foo%20bar%22%3Atest" works as expected

taylorbrooks commented 6 years ago

Looks like this was fixed with #5.