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 {
handle: category.id,
title: category.title,
description: category.title,
description: category.description!,
seo: {
title: category.title,
description: category.title
description: category.description!
},
path: `/search/${category.id}`,
updatedAt: category.updatedAt

View File

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