diff --git a/src/components/Views/Home.tsx b/src/components/Views/Home.tsx index a41b45a6..824546f9 100644 --- a/src/components/Views/Home.tsx +++ b/src/components/Views/Home.tsx @@ -1,5 +1,3 @@ -import type { Shout } from '../../graphql/schema/core.gen' - import { createMemo, createSignal, For, onMount, Show } from 'solid-js' import { useLocalize } from '../../context/localize' @@ -24,6 +22,7 @@ import { Row3 } from '../Feed/Row3' import { Row5 } from '../Feed/Row5' import RowShort from '../Feed/RowShort' import { Topics } from '../Nav/Topics' +import { Shout } from '../../graphql/schema/core.gen' type Props = { shouts: Shout[] diff --git a/src/graphql/query/core/article-load.ts b/src/graphql/query/core/article-load.ts index 3a3bf812..f42378ff 100644 --- a/src/graphql/query/core/article-load.ts +++ b/src/graphql/query/core/article-load.ts @@ -1,8 +1,8 @@ import { gql } from '@urql/core' export default gql` - query LoadShoutQuery($slug: String, $shoutId: Int) { - get_shout(slug: $slug, shout_id: $shoutId) { + query LoadShoutQuery($slug: String, $shout_id: Int) { + get_shout(slug: $slug, shout_id: $shout_id) { id title lead @@ -34,7 +34,7 @@ export default gql` pic created_at } - createda_at + created_at published_at stat { viewed