diff --git a/apps/marketing/src/app/(marketing)/singleplayer/[token]/success/page.tsx b/apps/marketing/src/app/(marketing)/singleplayer/[token]/success/page.tsx
index fbf020c38..51fbaff36 100644
--- a/apps/marketing/src/app/(marketing)/singleplayer/[token]/success/page.tsx
+++ b/apps/marketing/src/app/(marketing)/singleplayer/[token]/success/page.tsx
@@ -27,7 +27,7 @@ export default async function SinglePlayerModeSuccessPage({
return notFound();
}
- const signatures = await getRecipientSignatures({ recipientId: document.Recipient.id });
+ const signatures = await getRecipientSignatures({ recipientId: document.Recipient[0].id });
return ;
}
diff --git a/apps/marketing/src/components/(marketing)/single-player-mode/single-player-mode-success.tsx b/apps/marketing/src/components/(marketing)/single-player-mode/single-player-mode-success.tsx
index 32983d1f3..85edf2594 100644
--- a/apps/marketing/src/components/(marketing)/single-player-mode/single-player-mode-success.tsx
+++ b/apps/marketing/src/components/(marketing)/single-player-mode/single-player-mode-success.tsx
@@ -55,7 +55,7 @@ export const SinglePlayerModeSuccess = ({
@@ -65,7 +65,7 @@ export const SinglePlayerModeSuccess = ({
diff --git a/packages/lib/server-only/document/get-document-by-token.ts b/packages/lib/server-only/document/get-document-by-token.ts
index 18f9a5161..d242e72fd 100644
--- a/packages/lib/server-only/document/get-document-by-token.ts
+++ b/packages/lib/server-only/document/get-document-by-token.ts
@@ -70,6 +70,6 @@ export const getDocumentAndRecipientByToken = async ({
return {
...result,
- Recipient: result.Recipient[0],
+ Recipient: result.Recipient,
};
};
diff --git a/packages/prisma/types/document-with-recipient.ts b/packages/prisma/types/document-with-recipient.ts
index c55b99e67..32ecd29cb 100644
--- a/packages/prisma/types/document-with-recipient.ts
+++ b/packages/prisma/types/document-with-recipient.ts
@@ -5,6 +5,6 @@ export type DocumentWithRecipients = Document & {
};
export type DocumentWithRecipient = Document & {
- Recipient: Recipient;
+ Recipient: Recipient[];
documentData: DocumentData;
};