diff --git a/libs/users/application/src/lib/use-cases/get-user.use-case.ts b/libs/users/application/src/lib/use-cases/get-user.use-case.ts index 25e328f..be0f1e8 100644 --- a/libs/users/application/src/lib/use-cases/get-user.use-case.ts +++ b/libs/users/application/src/lib/use-cases/get-user.use-case.ts @@ -9,7 +9,7 @@ export class GetUserUseCase { ) {} async execute(id: string): Promise { - const user = this.usersRepository.findById(id); + const user = await this.usersRepository.findById(id); if (!user) { return null;