delete-debug

This commit is contained in:
Untone 2024-01-31 20:41:49 +03:00
parent 7e46bbdd9e
commit 504eb98cd7

View File

@ -163,8 +163,11 @@ export const apiClient = {
console.debug('[graphql.client.core] updateArticle:', response.data) console.debug('[graphql.client.core] updateArticle:', response.data)
return response.data.update_shout.shout return response.data.update_shout.shout
}, },
deleteShout: async ({ shoutId }: { shoutId: number }): Promise<void> => { deleteShout: async (params): Promise<void> => {
const response = await apiClient.private.mutation(deleteShout, { shout_id: shoutId }).toPromise() console.debug(params)
const response = await apiClient.private
.mutation(deleteShout, { shout_id: params?.shoutId })
.toPromise()
console.debug('[graphql.client.core] deleteShout:', response) console.debug('[graphql.client.core] deleteShout:', response)
}, },
getDrafts: async (): Promise<Shout[]> => { getDrafts: async (): Promise<Shout[]> => {