From fc6e76d75626ff8cb3c8ea8f05ce56fe983b3cc9 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Mon, 29 Sep 2025 18:47:21 +0200 Subject: [PATCH] Added Types --- src/routes/emailAsUser.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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,