From e4bed4d07a8db5a7fcf9b51daa8aef14f115d5eb Mon Sep 17 00:00:00 2001 From: LukasDeco Date: Fri, 2 Aug 2024 11:26:01 -0600 Subject: [PATCH] fix: user performance query bug --- lib/client/indexer/user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/client/indexer/user.ts b/lib/client/indexer/user.ts index 3143c84..e970066 100644 --- a/lib/client/indexer/user.ts +++ b/lib/client/indexer/user.ts @@ -37,10 +37,10 @@ export class FutarchyIndexerUserClient implements FutarchyUserClient { }) .reduce((where, field) => { const [key, val] = field; - if (key === "userAcct" && val instanceof PublicKey) { + if (key === "userAcct" && val && typeof val === "object") { where.user_acct = { _eq: val.toBase58() }; } - if (key === "proposalAcct" && val instanceof PublicKey) { + if (key === "proposalAcct" && val && typeof val === "object") { where.proposal_acct = { _eq: val.toBase58() }; } if (key === "daoSlug" && typeof val === "string") {