แก้สถ่นะออกคำสั่ง

This commit is contained in:
moss 2025-04-03 11:15:06 +07:00
parent a975012aa0
commit 5e827d4060

View file

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