From 3e7ee627547bd5daef8cfd1ba10fb6c43fb9c650 Mon Sep 17 00:00:00 2001 From: Arman Date: Tue, 3 Oct 2023 10:55:16 +0200 Subject: [PATCH] fix: wrong id --- src/lib/sdk/billing.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/lib/sdk/billing.ts b/src/lib/sdk/billing.ts index 07159fb91..0f4fe30f9 100644 --- a/src/lib/sdk/billing.ts +++ b/src/lib/sdk/billing.ts @@ -362,17 +362,13 @@ export class Billing { ); } - async listInvoices( - organizationId: string, - queries: Query[] = [], - search = '' - ): Promise { + async listInvoices(organizationId: string, queries: Query[] = []): Promise { const path = `/organizations/${organizationId}/invoices`; const params = { organizationId, - queries, - search + queries }; + const uri = new URL(this.client.config.endpoint + path); return await this.client.call( 'get',