parent
8771a5613e
commit
fd0e81342f
1 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,9 @@ export const getAllPostsWithSlug = async () => {
|
|||
return data.objects
|
||||
}
|
||||
|
||||
export const getAllPostsForHome = async (preview: boolean): Promise<Post[]> => {
|
||||
export const getAllPostsForHome = async (
|
||||
preview: boolean
|
||||
): Promise<PostType[]> => {
|
||||
const params = {
|
||||
query: {
|
||||
type: 'posts',
|
||||
|
|
Loading…
Reference in a new issue