From 0272361d36cb5c19dd23d6626a009af863a97325 Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 15 Aug 2024 23:40:11 +0700 Subject: [PATCH] add await --- src/controllers/KpiUserEvaluationController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/KpiUserEvaluationController.ts b/src/controllers/KpiUserEvaluationController.ts index b83c9ca..557b821 100644 --- a/src/controllers/KpiUserEvaluationController.ts +++ b/src/controllers/KpiUserEvaluationController.ts @@ -945,7 +945,7 @@ export class KpiUserEvaluationController extends Controller { throw new HttpError(HttpStatusCode.NOT_FOUND, "พบบางไอดีผู้ประเมินที่ไม่มีข้อมูล"); } - list.forEach(async (item) => { + await list.forEach(async (item) => { let role = "EVALUATOR"; if (profileId == item.commanderId) { role = "COMMANDER";