courrier multi account restore compose
This commit is contained in:
parent
d73422ca48
commit
c6c5fd45e9
@ -156,19 +156,7 @@ export async function getImapConnection(
|
|||||||
*/
|
*/
|
||||||
export async function getUserEmailCredentials(userId: string): Promise<EmailCredentials | null> {
|
export async function getUserEmailCredentials(userId: string): Promise<EmailCredentials | null> {
|
||||||
const credentials = await prisma.mailCredentials.findFirst({
|
const credentials = await prisma.mailCredentials.findFirst({
|
||||||
where: { userId },
|
where: { userId }
|
||||||
select: {
|
|
||||||
email: true,
|
|
||||||
password: true,
|
|
||||||
host: true,
|
|
||||||
port: true,
|
|
||||||
secure: true,
|
|
||||||
smtp_host: true,
|
|
||||||
smtp_port: true,
|
|
||||||
smtp_secure: true,
|
|
||||||
display_name: true,
|
|
||||||
color: true
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!credentials) return null;
|
if (!credentials) return null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user