From 84db5681af6a7f89c954a3ebc28788b53aa5fff5 Mon Sep 17 00:00:00 2001 From: zhumeisongsong Date: Wed, 20 Nov 2024 12:38:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Missing=20await=20for=20a?= =?UTF-8?q?sync=20repository=20call?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/users/application/src/lib/use-cases/get-user.use-case.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;