query-fix
This commit is contained in:
parent
af0c7fa712
commit
d7f00cd962
|
@ -207,6 +207,7 @@ export const apiClient = {
|
||||||
},
|
},
|
||||||
|
|
||||||
getMyShout: async (shout_id: number) => {
|
getMyShout: async (shout_id: number) => {
|
||||||
|
await apiClient.private
|
||||||
const resp = await apiClient.private.query(getMyShout, { shout_id }).toPromise()
|
const resp = await apiClient.private.query(getMyShout, { shout_id }).toPromise()
|
||||||
if (resp.error) console.error(resp)
|
if (resp.error) console.error(resp)
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { gql } from '@urql/core'
|
import { gql } from '@urql/core'
|
||||||
|
|
||||||
export default gql`
|
export default gql`
|
||||||
query LoadShoutQuery($slug: String, $shout_id: Int) {
|
query LoadShoutQuery($slug: String!) {
|
||||||
get_shout(slug: $slug, shout_id: $shout_id) {
|
get_shout(slug: $slug) {
|
||||||
id
|
id
|
||||||
title
|
title
|
||||||
lead
|
lead
|
||||||
|
|
Loading…
Reference in New Issue
Block a user