From 4728f1cc466c29c54613851c2828a16332bf202f Mon Sep 17 00:00:00 2001 From: diced Date: Sat, 28 Aug 2021 19:37:38 -0700 Subject: [PATCH] fix(api): accidently sending images as a part of the user object --- src/lib/middleware/withZipline.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/middleware/withZipline.ts b/src/lib/middleware/withZipline.ts index 25e8f12..b3c9baa 100644 --- a/src/lib/middleware/withZipline.ts +++ b/src/lib/middleware/withZipline.ts @@ -26,7 +26,6 @@ export type NextApiReq = NextApiRequest & { customTheme?: Theme; administrator: boolean; id: number; - images: Image[]; password: string; } | null | void>; getCookie: (name: string) => string | null; @@ -100,7 +99,6 @@ export const withZipline = (handler: (req: NextApiRequest, res: NextApiResponse) embedColor: true, embedTitle: true, id: true, - images: true, password: true, systemTheme: true, customTheme: true,