fix list invoices

This commit is contained in:
Damodar Lohani
2023-09-28 07:48:59 +05:45
parent 8d7ba99000
commit 2e8718624e
+5 -2
View File
@@ -365,14 +365,17 @@ export class Billing {
async listInvoices(
organizationId: string,
queries: Query[] = [],
search = ''
search
): Promise<InvoiceList> {
const path = `/organizations/${organizationId}/invoices`;
const params = {
organizationId,
queries,
search
};
if (typeof search !== 'undefined') {
params['search'] = search;
}
const uri = new URL(this.client.config.endpoint + path);
return await this.client.call(
'get',