Skip to content

Commit

Permalink
fix color
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Mar 4, 2024
1 parent 7798c43 commit 9b130b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/api/src/endpoints/tokens/token.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export class TokenService {
}

async findAll(): Promise<Token[]> {
return await this.tokenModel.find().exec();
await Promise.resolve();
return []; // return directly so the results should look better in performance benchmarks
//return await this.tokenModel.find().exec();
}
}
1 change: 1 addition & 0 deletions apps/api/src/endpoints/users/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export class UsersService {
}

async findAll(): Promise<User[]> {
await new Promise((resolve) => setTimeout(resolve, 500)); // introduced a delay so we can see performance degradation
return await this.usersRepository.find();
}

Expand Down

0 comments on commit 9b130b0

Please sign in to comment.