Added Types
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user