diff --git a/server/private/routers/loginPage/upsertLoginPageBranding.ts b/server/private/routers/loginPage/upsertLoginPageBranding.ts index 146f0721..8782db3d 100644 --- a/server/private/routers/loginPage/upsertLoginPageBranding.ts +++ b/server/private/routers/loginPage/upsertLoginPageBranding.ts @@ -78,7 +78,7 @@ export async function upsertLoginPageBranding( next: NextFunction ): Promise { try { - const parsedBody = bodySchema.safeParse(req.body); + const parsedBody = await bodySchema.safeParseAsync(req.body); if (!parsedBody.success) { return next( createHttpError(