fix: build errors

This commit is contained in:
Ephraim Atta-Duncan
2025-03-03 17:17:45 +00:00
parent 108060cc9a
commit 12eb82629e
3 changed files with 131 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ export const getNextInboxDocument = async ({ email }: GetNextInboxDocumentOption
return await prisma.document.findMany({
where: {
Recipient: {
recipients: {
some: {
email,
signingStatus: SigningStatus.NOT_SIGNED,
@@ -30,7 +30,7 @@ export const getNextInboxDocument = async ({ email }: GetNextInboxDocumentOption
createdAt: true,
title: true,
status: true,
Recipient: {
recipients: {
where: {
email,
},

View File

@@ -30,7 +30,7 @@ type GetNextInboxDocumentResult =
createdAt: true;
title: true;
status: true;
Recipient: {
recipients: {
select: {
token: true;
role: true;
@@ -78,7 +78,7 @@ export const NextInboxItemButton = ({
<div className="mt-8 space-y-6">
{nextInboxDocument?.map((document) => {
const recipient = document.Recipient[0];
const recipient = document.recipients[0];
return (
<div key={document.id} className="flex items-center justify-between space-y-1">