Skip to content

Commit

Permalink
fix: add await for filter modal traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
SocketSomeone committed Jan 5, 2024
1 parent d0e6224 commit 331bee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/necord-pagination.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class NecordPaginationController {

if (!pageBuilder) throw new PaginationNotFoundException();

if (!pageBuilder.filter(interaction)) throw new PaginationForbiddenException();
if (!(await pageBuilder.filter(interaction))) throw new PaginationForbiddenException();

const pageOptions = await pageBuilder.build(page);

Expand Down

0 comments on commit 331bee7

Please sign in to comment.