From 504eb98cd78355c0a5787368e7ca3db4b50069a8 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 31 Jan 2024 20:41:49 +0300 Subject: [PATCH] delete-debug --- src/graphql/client/core.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/graphql/client/core.ts b/src/graphql/client/core.ts index 04e8acf6..e14bdad2 100644 --- a/src/graphql/client/core.ts +++ b/src/graphql/client/core.ts @@ -163,8 +163,11 @@ export const apiClient = { console.debug('[graphql.client.core] updateArticle:', response.data) return response.data.update_shout.shout }, - deleteShout: async ({ shoutId }: { shoutId: number }): Promise => { - const response = await apiClient.private.mutation(deleteShout, { shout_id: shoutId }).toPromise() + deleteShout: async (params): Promise => { + console.debug(params) + const response = await apiClient.private + .mutation(deleteShout, { shout_id: params?.shoutId }) + .toPromise() console.debug('[graphql.client.core] deleteShout:', response) }, getDrafts: async (): Promise => {