Compare commits
No commits in common. "c6c5fd45e9be8bcb59d3cbf8e180eefd68fb28af" and "d07492f6bc1b6f2940e16502490ff11d31ef088e" have entirely different histories.
c6c5fd45e9
...
d07492f6bc
@ -156,7 +156,19 @@ export async function getImapConnection(
|
||||
*/
|
||||
export async function getUserEmailCredentials(userId: string): Promise<EmailCredentials | null> {
|
||||
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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user