From 233a117f5b9db08bc0723f411b4f84402b261a7e Mon Sep 17 00:00:00 2001 From: SinachPat Date: Wed, 6 May 2026 22:17:04 +0100 Subject: [PATCH] fix: update useDiffs Omit key from author_id to author_email InsertIntentDiff.author_id was renamed to author_email in the email identity migration. useDiffs.ts still referenced the old field name in its Omit<> types, causing the Next.js build to fail on Vercel and Render. Co-Authored-By: Claude Sonnet 4.6 --- packages/app/src/hooks/useDiffs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/hooks/useDiffs.ts b/packages/app/src/hooks/useDiffs.ts index dd1557b..658b25f 100644 --- a/packages/app/src/hooks/useDiffs.ts +++ b/packages/app/src/hooks/useDiffs.ts @@ -10,7 +10,7 @@ async function fetchDiffs(artboardId: string): Promise { } async function createDiffRequest( - body: Omit, + body: Omit, ): Promise { const res = await fetch('/api/diffs', { method: 'POST', @@ -55,7 +55,7 @@ export function useDiffs(artboardId: string | null) { }); const createDiff = useMutation({ - mutationFn: (body: Omit) => createDiffRequest(body), + mutationFn: (body: Omit) => createDiffRequest(body), onSuccess: () => queryClient.invalidateQueries({ queryKey }), });