This commit is contained in:
@@ -17,6 +17,7 @@ export function toPublicListingDto(listing) {
|
||||
status: listing.status,
|
||||
notes: listing.notes ?? null,
|
||||
images: listing.images ?? [],
|
||||
sellerDescription: listing.sellerDescription ?? null,
|
||||
sellerDisplayName: listing.sellerDisplayName ?? null,
|
||||
sellerContactEmail: listing.sellerContactEmail ?? null,
|
||||
sellerContactPhone: listing.sellerContactPhone ?? null,
|
||||
|
||||
@@ -15,6 +15,7 @@ export function toPublicProductDto(product) {
|
||||
eventName: product.eventName ?? null,
|
||||
releaseYear: product.releaseYear ?? null,
|
||||
tags: product.tags ?? [],
|
||||
sellerDescription: product.sellerDescription ?? null,
|
||||
sellerDisplayName: product.sellerDisplayName ?? null,
|
||||
sellerContactEmail: product.sellerContactEmail ?? null,
|
||||
sellerContactPhone: product.sellerContactPhone ?? null,
|
||||
|
||||
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
||||
|
||||
export const sellerSettingsSchema = z.object({
|
||||
general: z.object({
|
||||
publicDescription: z.string().trim().max(2000).optional(),
|
||||
publicContactEmail: z.string().trim().email().optional(),
|
||||
publicContactPhone: z.string().trim().max(50).optional(),
|
||||
}).strict().optional(),
|
||||
|
||||
Reference in New Issue
Block a user