Skip to content

Commit

Permalink
Get all tokens fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Boldizsar Mezei committed Jul 23, 2023
1 parent 88deba5 commit a9c428c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/@api/token.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class TokenApi extends BaseApi<Token> {
let actTokens: Token[] = [];
do {
const last = tokens[tokens.length - 1]?.uid;
actTokens = await firstValueFrom(this.top(last));
actTokens = await this.tokenRepo.getByField('approved', true, last);
tokens.push(...actTokens);
} while (actTokens.length === QUERY_MAX_LENGTH);
return tokens;
Expand Down

0 comments on commit a9c428c

Please sign in to comment.