intercom / intercom-node

Node.js bindings for the Intercom API
https://developers.intercom.com
Other
366 stars 116 forks source link

Can't find company by company Id #334

Open SudhakarSA opened 1 year ago

SudhakarSA commented 1 year ago

Version info

Expected behavior

Get company info by company_id. Here is my code

let company = await intercom.companies.find({ companyId: 123 });

Actual behavior

Getting all companies instead of filtered company

SeanHealy33 commented 1 year ago

Hi @SudhakarSA

I"m able to reproduce this issue. I'll get to work on fielding a fix for this issue. It appears that we are not parsing the payloads correctly here. I'll update here as I continue to figure out what's wrong with the payloads we send to the api in question :)

Thanks for the bug report :)