From 5e827d4060cdd1a76a587c332ffde47488803ef2 Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 3 Apr 2025 11:15:06 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=AA=E0=B8=96?= =?UTF-8?q?=E0=B9=88=E0=B8=99=E0=B8=B0=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ReportController.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index c436a4e..d291393 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -1304,6 +1304,7 @@ export class ReportController extends Controller { @Body() body: { refIds: string[]; + status: string; } ) { try { @@ -1425,6 +1426,7 @@ export class ReportController extends Controller { @Body() body: { refIds: string[]; + status: string; } ) { try { @@ -1523,6 +1525,7 @@ export class ReportController extends Controller { @Body() body: { refIds: string[]; + status: string; } ) { try { @@ -1531,7 +1534,7 @@ export class ReportController extends Controller { }); await Promise.all( lists.map(async (list) => { - list.status = "REPORT"; + list.status = body.status.trim().toUpperCase(); await this.appointRepository.save(list); }) );