mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-24 01:32:35 +00:00
Fix logo url
This commit is contained in:
@@ -33,7 +33,10 @@ const paramsSchema = z.strictObject({
|
||||
});
|
||||
|
||||
const bodySchema = z.strictObject({
|
||||
logoUrl: z.string().optional(),
|
||||
logoUrl: z
|
||||
.string()
|
||||
.optional()
|
||||
.transform((val) => (val === "" ? null : val)),
|
||||
logoWidth: z.coerce.number<number>().min(1),
|
||||
logoHeight: z.coerce.number<number>().min(1),
|
||||
resourceTitle: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user