Skip to content

Commit

Permalink
fix: πŸ› Missing await for async repository call
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumeisongsong committed Nov 20, 2024
1 parent b09be75 commit 84db568
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class GetUserUseCase {
) {}

async execute(id: string): Promise<User | null> {
const user = this.usersRepository.findById(id);
const user = await this.usersRepository.findById(id);

if (!user) {
return null;
Expand Down

0 comments on commit 84db568

Please sign in to comment.