From 1b49c9c0814912f9f07f345f374284383ac47b60 Mon Sep 17 00:00:00 2001 From: artlu99 Date: Sun, 3 Nov 2024 11:55:08 -0500 Subject: [PATCH] search a different datatype --- functions/getSassyHashes/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/getSassyHashes/index.ts b/functions/getSassyHashes/index.ts index 1427f20..e8a067b 100644 --- a/functions/getSassyHashes/index.ts +++ b/functions/getSassyHashes/index.ts @@ -58,7 +58,7 @@ export const onRequestPost: PagesFunction = async (context) => { const user = await privy.getUser({ idToken }); - const fid = user?.farcaster?.fid; + const fid = user?.linkedAccounts?.find((la) => la.type === 'farcaster')?.fid; if (fid) { const sassyHashResponses = await fetchSassyHashExpensiveApi(fid, castHash, env); return new Response(JSON.stringify(sassyHashResponses));