Added Types

This commit is contained in:
2025-09-29 18:47:21 +02:00
parent 8750ccbb7d
commit fc6e76d756

View File

@@ -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<string, any>;
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,