trieb-work / zoho-ts

Zoho Inventory, Invoice and Books Typescript library with several predefined functions
Apache License 2.0
13 stars 5 forks source link

pass apiFlavour from config to avoid taking default "inventory" #23

Open amexn-me opened 4 months ago

amexn-me commented 4 months ago

Hi Team,

While I was playing around, I saw the module is not able to send API requests to Books/Invoices due to the fact that whatever apiFlavour we provide, it seems to take "inventory" by default. the problem lies with the fact that it was not being passed on to api client. just adding that fixed the issue