This commit is contained in:
Timur Ercan
2023-02-01 17:58:14 +01:00
parent 19e9f64ab5
commit f70108c36a

View File

@ -25,7 +25,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
return;
}
let document = await prisma.document.findFirst({
let document = await prisma.document.findFirstOrThrow({
where: {
id: recipient.documentId,
},