Skip to content

Commit

Permalink
search a different datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
artlu99 committed Nov 3, 2024
1 parent da7fe7a commit 1b49c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/getSassyHashes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const onRequestPost: PagesFunction<Env> = 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));
Expand Down

0 comments on commit 1b49c9c

Please sign in to comment.