Skip to content

Commit

Permalink
fix: fix missing await
Browse files Browse the repository at this point in the history
wa0x6e committed Jan 30, 2025
1 parent 3751470 commit 0e0ed45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/writer/proposal.ts
Original file line number Diff line number Diff line change
@@ -210,7 +210,10 @@ export async function verify(body): Promise<any> {
monthCount >= (await getSpaceProposalsLimits(space, 'month'))
)
return Promise.reject('proposal limit reached');
if (!isAuthorized && activeProposalsByAuthor >= getLimit('limit.active_proposals_per_author'))
if (
!isAuthorized &&
activeProposalsByAuthor >= (await getLimit('limit.active_proposals_per_author'))
)
return Promise.reject('active proposal limit reached for author');
} catch (e) {
capture(e);

0 comments on commit 0e0ed45

Please sign in to comment.