delete-debug
This commit is contained in:
parent
7e46bbdd9e
commit
504eb98cd7
|
@ -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[]> => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user