delete-shout-fix
This commit is contained in:
parent
504eb98cd7
commit
0a9b70bfb7
|
@ -13,6 +13,7 @@ import type {
|
||||||
QueryLoad_Shouts_SearchArgs,
|
QueryLoad_Shouts_SearchArgs,
|
||||||
QueryLoad_Shouts_Random_TopArgs,
|
QueryLoad_Shouts_Random_TopArgs,
|
||||||
Community,
|
Community,
|
||||||
|
MutationDelete_ShoutArgs,
|
||||||
} from '../schema/core.gen'
|
} from '../schema/core.gen'
|
||||||
|
|
||||||
import { createGraphQLClient } from '../createGraphQLClient'
|
import { createGraphQLClient } from '../createGraphQLClient'
|
||||||
|
@ -163,11 +164,8 @@ 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 (params): Promise<void> => {
|
deleteShout: async (params: MutationDelete_ShoutArgs): Promise<void> => {
|
||||||
console.debug(params)
|
const response = await apiClient.private.mutation(deleteShout, params).toPromise()
|
||||||
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