get-my-shout
This commit is contained in:
parent
4ed15f405e
commit
2d7fd38d82
|
@ -199,16 +199,11 @@ export const apiClient = {
|
|||
console.debug('[graphql.client.core] authorsLoadBy:', resp)
|
||||
return resp.data.load_authors_by
|
||||
},
|
||||
|
||||
getShoutBySlug: async (slug: string) => {
|
||||
const resp = await publicGraphQLClient.query(shoutLoad, { slug }).toPromise()
|
||||
return resp.data.get_shout
|
||||
},
|
||||
getShoutById: async (shout_id: number) => {
|
||||
const resp = await publicGraphQLClient.query(shoutLoad, { shout_id }).toPromise()
|
||||
if (resp.error) console.error(resp)
|
||||
|
||||
return resp.data.get_shout
|
||||
},
|
||||
|
||||
getMyShout: async (shout_id: number) => {
|
||||
const resp = await apiClient.private.query(shoutLoad, { shout_id }).toPromise()
|
||||
|
|
Loading…
Reference in New Issue
Block a user