diff --git a/src/routes/emailAsUser.ts b/src/routes/emailAsUser.ts index 6977ede..03b2bd9 100644 --- a/src/routes/emailAsUser.ts +++ b/src/routes/emailAsUser.ts @@ -12,7 +12,16 @@ export default async function emailAsUserRoutes(server: FastifyInstance) { return reply.code(400).send({ error: "No tenant selected" }); } - const body = req.body as Record; + const body = req.body as { + email: string + password: string + smtp_host: string + smtp_port: number + smtp_ssl: boolean + imap_host: string + imap_port: number + imap_ssl: boolean + }; let createData = { user_id: req.user.user_id,