bug: fix bug blog

This commit is contained in:
Quangnhankie
2021-10-21 09:49:45 +07:00
parent 5b5aeec0d2
commit a343079d34
5 changed files with 23 additions and 109 deletions

View File

@@ -7,7 +7,11 @@ export type BlogVariables = {
excludeBlogIds?: string[],
take?: number,
skip?:number,
isFeatured?:{eq?:Boolean},
filter?:{
isFeatured?:{
eq?:Boolean
}
},
}
export default function getAllBlogsOperation({
@@ -35,9 +39,8 @@ export default function getAllBlogsOperation({
excludeBlogIds: vars.excludeBlogIds,
options: {
take: vars.take,
skip: vars.skip,
filter: {
isFeatured: vars.isFeatured
isFeatured: vars.filter?.isFeatured
}
},
}