mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 01:01:49 +10:00
fix: refactor prisma relations (#1581)
This commit is contained in:
@ -15,7 +15,7 @@ export const getRecipientOrSenderByShareLinkSlug = async ({
|
||||
|
||||
const sender = await prisma.user.findFirst({
|
||||
where: {
|
||||
Document: { some: { id: documentId } },
|
||||
documents: { some: { id: documentId } },
|
||||
email,
|
||||
},
|
||||
select: {
|
||||
@ -35,7 +35,7 @@ export const getRecipientOrSenderByShareLinkSlug = async ({
|
||||
email,
|
||||
},
|
||||
include: {
|
||||
Signature: true,
|
||||
signatures: true,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user