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 => {