bug: fix show featured blogs

This commit is contained in:
Quangnhankie
2021-10-20 10:56:34 +07:00
parent 7ea734d0ad
commit 5b5aeec0d2
4 changed files with 31 additions and 12 deletions

View File

@@ -6,7 +6,8 @@ import { getAllBlogsQuery } from '../../utils/queries/get-all-blog-query'
export type BlogVariables = {
excludeBlogIds?: string[],
take?: number,
skip?:number
skip?:number,
isFeatured?:{eq?:Boolean},
}
export default function getAllBlogsOperation({
@@ -35,6 +36,9 @@ export default function getAllBlogsOperation({
options: {
take: vars.take,
skip: vars.skip,
filter: {
isFeatured: vars.isFeatured
}
},
}
const { data } = await config.fetch<GetAllBlogsQuery>(query, {