diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-16 15:01:57 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-16 15:01:57 +0100 |
| commit | 4b3b71a7e44a01550fe4d7c0be67b72aae109e73 (patch) | |
| tree | 85025b7383fb892d29ec8e3956f316850bdb070b /src/services | |
| parent | eb459cc248a5940a14193b20d263ffee3d345026 (diff) | |
chore: fix typo
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/graphql/blog.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/services/graphql/blog.ts b/src/services/graphql/blog.ts index 127eb1e..6b92b5a 100644 --- a/src/services/graphql/blog.ts +++ b/src/services/graphql/blog.ts @@ -1,6 +1,6 @@ import { ArticlePreview } from '@ts/types/articles'; import { - AllPostsSlugReponse, + AllPostsSlugResponse, FetchAllPostsSlugReturn, FetchPostsListReturn, GetPostsListReturn, @@ -111,8 +111,8 @@ export const getPublishedPosts: GetPostsListReturn = async ({ ? acfPosts.postsInSubject : []; const thematics = - acfPosts.postsInThematics && acfPosts.postsInThematics?.length > 0 - ? acfPosts.postsInThematics + acfPosts.postsInThematic && acfPosts.postsInThematic?.length > 0 + ? acfPosts.postsInThematic : []; return { @@ -146,7 +146,7 @@ export const fetchAllPostsSlug: FetchAllPostsSlugReturn = async () => { `; try { - const response: AllPostsSlugReponse = await client.request(query); + const response: AllPostsSlugResponse = await client.request(query); return response.posts.nodes; } catch (error) { console.error(JSON.stringify(error, undefined, 2)); |
