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); }) );