This commit is contained in:
Bright 2024-10-28 09:47:24 +07:00
parent 16766fbb1f
commit 6f098ef6c2

View file

@ -2748,7 +2748,7 @@ export class CommandController extends Controller {
await this.profileEmployeeRepository.save(data); await this.profileEmployeeRepository.save(data);
return new HttpSuccess(); return new HttpSuccess();
} }
@Post("command21/employee/delete") @Post("command21/employee/report/delete")
public async command21SalaryEmployeeDelete( public async command21SalaryEmployeeDelete(
@Request() req: RequestWithUser, @Request() req: RequestWithUser,
@Body() @Body()
@ -2759,7 +2759,7 @@ export class CommandController extends Controller {
const profile = await this.profileEmployeeRepository.find({ where: { id: In(body.refIds) } }); const profile = await this.profileEmployeeRepository.find({ where: { id: In(body.refIds) } });
const data = profile.map((_data) => ({ const data = profile.map((_data) => ({
..._data, ..._data,
statusTemp: "WAITTING", statusTemp: "PENDING",
})); }));
await this.profileEmployeeRepository.save(data); await this.profileEmployeeRepository.save(data);
return new HttpSuccess(); return new HttpSuccess();