mirror of
https://github.com/documenso/documenso.git
synced 2025-11-23 05:01:54 +10:00
getDocument recfactor, qoc
This commit is contained in:
@ -20,10 +20,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
|
||||
return;
|
||||
}
|
||||
|
||||
const document: PrismaDocument = await getDocument(+documentId, {
|
||||
res: res,
|
||||
req: req,
|
||||
});
|
||||
const document: PrismaDocument = await getDocument(+documentId, req, res);
|
||||
|
||||
if (!document)
|
||||
res.status(404).end(`No document with id ${documentId} found.`);
|
||||
|
||||
Reference in New Issue
Block a user