payload types

This commit is contained in:
Kristian Duda 2024-06-28 14:05:45 +02:00
parent 04a2c2b29e
commit 5c41217ca0
2 changed files with 3 additions and 3 deletions

View File

@ -282,10 +282,10 @@ const reshapeCategory = (category: PayloadCategory): Collection => {
return { return {
handle: category.id, handle: category.id,
title: category.title, title: category.title,
description: category.title, description: category.description!,
seo: { seo: {
title: category.title, title: category.title,
description: category.title description: category.description!
}, },
path: `/search/${category.id}`, path: `/search/${category.id}`,
updatedAt: category.updatedAt updatedAt: category.updatedAt

View File

@ -68,6 +68,7 @@ export interface Post {
export interface Category { export interface Category {
id: string; id: string;
title: string; title: string;
description?: string | null;
updatedAt: string; updatedAt: string;
createdAt: string; createdAt: string;
} }
@ -175,7 +176,6 @@ export interface Product {
*/ */
export interface Cart { export interface Cart {
id: string; id: string;
name: string;
totalAmount?: number | null; totalAmount?: number | null;
user?: (string | null) | User; user?: (string | null) | User;
lines?: lines?: