Skip to content

Commit

Permalink
🛠️ A Allow concurrent execution of delegate query (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flip-Liquid committed Mar 7, 2024
1 parent a1e974d commit e8629ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/common/delegates/getDelegates.ts
Expand Up @@ -151,7 +151,7 @@ export async function getDelegate(addressOrENSName: string): Promise<Delegate> {

const [delegate, votableSupply, delegateStatement, quorum, _isCitizen] =
await Promise.all([
(await delegateQuery)?.[0] || undefined,
delegateQuery.then(result => result?.[0] || undefined),
prisma[`${namespace}VotableSupply`].findFirst({}),
getDelegateStatement(addressOrENSName),
getCurrentQuorum(),
Expand Down

0 comments on commit e8629ef

Please sign in to comment.