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