fix: refactor prisma relations (#1581)
This commit is contained in:
@@ -40,7 +40,7 @@ export const updateRecipient = async ({
|
||||
const recipient = await prisma.recipient.findFirst({
|
||||
where: {
|
||||
id: recipientId,
|
||||
Document: {
|
||||
document: {
|
||||
id: documentId,
|
||||
...(teamId
|
||||
? {
|
||||
@@ -60,7 +60,7 @@ export const updateRecipient = async ({
|
||||
},
|
||||
},
|
||||
include: {
|
||||
Document: true,
|
||||
document: true,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user