From 29b56ec6a39831bc727932aae2663055a0284fb6 Mon Sep 17 00:00:00 2001 From: Quangnhankie Date: Thu, 21 Oct 2021 12:21:18 +0700 Subject: [PATCH] bug: fix type --- framework/commerce/api/operations.ts | 8 ++++---- framework/commerce/types/blogs.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/commerce/api/operations.ts b/framework/commerce/api/operations.ts index 898c322e3..9f2682d7e 100644 --- a/framework/commerce/api/operations.ts +++ b/framework/commerce/api/operations.ts @@ -151,13 +151,13 @@ export type Operations

= { getAllBlogs: { - (opts: { + (opts: { variables?: T['variables'] config?: P['config'] preview?: boolean }): Promise - ( + ( opts: { variables?: T['variables'] config?: P['config'] @@ -167,13 +167,13 @@ export type Operations

= { } getFeaturedBlog: { - (opts: { + (opts: { variables?: T['variables'] config?: P['config'] preview?: boolean }): Promise - ( + ( opts: { variables?: T['variables'] config?: P['config'] diff --git a/framework/commerce/types/blogs.ts b/framework/commerce/types/blogs.ts index 9b6ce14c1..14feeb561 100644 --- a/framework/commerce/types/blogs.ts +++ b/framework/commerce/types/blogs.ts @@ -4,7 +4,7 @@ import { Asset, BlogTranslation, Maybe, Product } from './../../vendure/schema.d export type BlogList = Node &{ id: string featuredAsset?: Maybe - isHidden:Boolean + isPublic:Boolean translations: Array authorName: string authorAvatarAsset:Array