mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 19:51:23 +00:00
bug: fix show featured blogs
This commit is contained in:
@@ -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, {
|
||||
|
Reference in New Issue
Block a user