From 84480f1f38100088c81fbce0dab1d98ae6d7c337 Mon Sep 17 00:00:00 2001 From: Pontus Abrahamsson Date: Mon, 4 Mar 2024 10:27:43 +0100 Subject: [PATCH] wip --- apps/dashboard/package.json | 1 + packages/providers/src/gocardless/gocardless-api.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json index f719adf278..389426baf5 100644 --- a/apps/dashboard/package.json +++ b/apps/dashboard/package.json @@ -17,6 +17,7 @@ "@hookform/resolvers": "^3.3.4", "@midday/events": "workspace:*", "@midday/gocardless": "workspace:*", + "@midday/providers": "workspace:*", "@midday/jobs": "workspace:*", "@midday/kv": "workspace:*", "@midday/location": "workspace:*", diff --git a/packages/providers/src/gocardless/gocardless-api.ts b/packages/providers/src/gocardless/gocardless-api.ts index 65b460c357..63fd02f852 100644 --- a/packages/providers/src/gocardless/gocardless-api.ts +++ b/packages/providers/src/gocardless/gocardless-api.ts @@ -202,7 +202,7 @@ export class GoCardLessApi { } async deleteRequisition(id: string): Promise { - return this.#delete( + return this.#_delete( `/api/v2/requisitions/${id}/` ); } @@ -244,7 +244,7 @@ export class GoCardLessApi { return api.post(path, body, config).then(({ data }) => data); } - async #delete( + async #_delete( path: string, params?: unknown, config?: AxiosRequestConfig