mirror of
https://github.com/documenso/documenso.git
synced 2025-11-24 21:51:40 +10:00
recipients ui and api basics
This commit is contained in:
@ -32,9 +32,10 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
|
||||
return res.status(401).send("User does not have access to this document.");
|
||||
}
|
||||
|
||||
const upsert = await prisma.recipient.upsert({
|
||||
await prisma.recipient.upsert({
|
||||
where: {
|
||||
email: body.email,
|
||||
// todo id
|
||||
},
|
||||
update: {
|
||||
email: body.email,
|
||||
|
||||
Reference in New Issue
Block a user