build fix
This commit is contained in:
parent
3b782fb11f
commit
601b7848cf
@ -48,7 +48,7 @@ export async function GET(request: Request, props: { params: Promise<{ id: strin
|
||||
}
|
||||
|
||||
// Get mail credentials
|
||||
const credentials = await prisma.mailCredentials.findUnique({
|
||||
const credentials = await prisma.mailCredentials.findFirst({
|
||||
where: {
|
||||
userId: session.user.id,
|
||||
},
|
||||
@ -194,7 +194,7 @@ export async function POST(request: Request, props: { params: Promise<{ id: stri
|
||||
console.log(`[DEBUG] Processing action ${action} for email ${id}`);
|
||||
|
||||
// Get mail credentials
|
||||
const credentials = await prisma.mailCredentials.findUnique({
|
||||
const credentials = await prisma.mailCredentials.findFirst({
|
||||
where: {
|
||||
userId: session.user.id,
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user