query-fix

This commit is contained in:
Untone 2024-03-06 22:16:55 +03:00
parent af0c7fa712
commit d7f00cd962
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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