From 2be3d16365ca5e9cdafe744fbfc19369c51f2238 Mon Sep 17 00:00:00 2001 From: Brandon Egger Date: Thu, 24 Aug 2023 10:22:12 -0500 Subject: [PATCH] fix error where setting photo: null caused type error --- src/server/api/routers/auditoryResources.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/api/routers/auditoryResources.ts b/src/server/api/routers/auditoryResources.ts index 8d7d2b0..d18e609 100644 --- a/src/server/api/routers/auditoryResources.ts +++ b/src/server/api/routers/auditoryResources.ts @@ -67,6 +67,7 @@ export const auditoryResourceRouter = createTRPCRouter({ name: z.string(), data: z.instanceof(Buffer), }) + .nullable() .optional(), platform_links: z .array(