From 12eb82629e778124e8720501d4f4077dcd624c8b Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Mon, 3 Mar 2025 17:17:45 +0000 Subject: [PATCH] fix: build errors --- package-lock.json | 127 ++++++++++++++++++ .../user/get-next-inbox-document.ts | 4 +- .../document/next-inbox-item-button.tsx | 4 +- 3 files changed, 131 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6c558f543..e52530393 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29587,6 +29587,118 @@ "node": ">= 10" } }, + "packages/trpc/node_modules/@next/swc-darwin-x64": { + "version": "14.2.6", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.6.tgz", + "integrity": "sha512-ZHRbGpH6KHarzm6qEeXKSElSXh8dS2DtDPjQt3IMwY8QVk7GbdDYjvV4NgSnDA9huGpGgnyy3tH8i5yHCqVkiQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": ">= 10" + } + }, + "packages/trpc/node_modules/@next/swc-linux-arm64-gnu": { + "version": "14.2.6", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.6.tgz", + "integrity": "sha512-O4HqUEe3ZvKshXHcDUXn1OybN4cSZg7ZdwHJMGCXSUEVUqGTJVsOh17smqilIjooP/sIJksgl+1kcf2IWMZWHg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 10" + } + }, + "packages/trpc/node_modules/@next/swc-linux-arm64-musl": { + "version": "14.2.6", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.6.tgz", + "integrity": "sha512-xUcdhr2hfalG8RDDGSFxQ75yOG894UlmFS4K2M0jLrUhauRBGOtUOxoDVwiIIuZQwZ3Y5hDsazNjdYGB0cQ9yQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 10" + } + }, + "packages/trpc/node_modules/@next/swc-linux-x64-gnu": { + "version": "14.2.6", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.6.tgz", + "integrity": "sha512-InosKxw8UMcA/wEib5n2QttwHSKHZHNSbGcMepBM0CTcNwpxWzX32KETmwbhKod3zrS8n1vJ+DuJKbL9ZAB0Ag==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 10" + } + }, + "packages/trpc/node_modules/@next/swc-linux-x64-musl": { + "version": "14.2.6", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.6.tgz", + "integrity": "sha512-d4QXfJmt5pGJ7cG8qwxKSBnO5AXuKAFYxV7qyDRHnUNvY/dgDh+oX292gATpB2AAHgjdHd5ks1wXxIEj6muLUQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">= 10" + } + }, + "packages/trpc/node_modules/@next/swc-win32-arm64-msvc": { + "version": "14.2.6", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.6.tgz", + "integrity": "sha512-AlgIhk4/G+PzOG1qdF1b05uKTMsuRatFlFzAi5G8RZ9h67CVSSuZSbqGHbJDlcV1tZPxq/d4G0q6qcHDKWf4aQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">= 10" + } + }, + "packages/trpc/node_modules/@next/swc-win32-x64-msvc": { + "version": "14.2.6", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.6.tgz", + "integrity": "sha512-NANtw+ead1rSDK1jxmzq3TYkl03UNK2KHqUYf1nIhNci6NkeqBD4s1njSzYGIlSHxCK+wSaL8RXZm4v+NF/pMw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">= 10" + } + }, "packages/trpc/node_modules/@trpc/next": { "version": "11.0.0-rc.648+77b4d8920", "funding": [ @@ -29887,6 +29999,21 @@ "engines": { "node": ">=6" } + }, + "packages/trpc/node_modules/@next/swc-win32-ia32-msvc": { + "version": "14.2.6", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.6.tgz", + "integrity": "sha512-hNukAxq7hu4o5/UjPp5jqoBEtrpCbOmnUqZSKNJG8GrUVzfq0ucdhQFVrHcLRMvQcwqqDh1a5AJN9ORnNDpgBQ==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } } } } diff --git a/packages/lib/server-only/user/get-next-inbox-document.ts b/packages/lib/server-only/user/get-next-inbox-document.ts index bbd541fac..e6dfeda72 100644 --- a/packages/lib/server-only/user/get-next-inbox-document.ts +++ b/packages/lib/server-only/user/get-next-inbox-document.ts @@ -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, }, diff --git a/packages/ui/components/document/next-inbox-item-button.tsx b/packages/ui/components/document/next-inbox-item-button.tsx index 6fda1a2cc..6fd912c10 100644 --- a/packages/ui/components/document/next-inbox-item-button.tsx +++ b/packages/ui/components/document/next-inbox-item-button.tsx @@ -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 = ({
{nextInboxDocument?.map((document) => { - const recipient = document.Recipient[0]; + const recipient = document.recipients[0]; return (