no message

This commit is contained in:
Kittapath 2024-07-04 18:32:26 +07:00
parent ac42957b91
commit 538ec8f8a1

View file

@ -1436,20 +1436,20 @@ export class ProfileController extends Controller {
lastUpdateUserId: req.user.sub,
lastUpdateFullName: req.user.name,
});
//เพิ่มวินัย
const profileDiscipline: ProfileDiscipline = Object.assign(new ProfileDiscipline(), {
date: body.date,
profileId: body.profileId,
refCommandNo: body.refCommandNo,
createdUserId: req.user.sub,
createdFullName: req.user.name,
lastUpdateUserId: req.user.sub,
lastUpdateFullName: req.user.name,
});
// //เพิ่มวินัย
// const profileDiscipline: ProfileDiscipline = Object.assign(new ProfileDiscipline(), {
// date: body.date,
// profileId: body.profileId,
// refCommandNo: body.refCommandNo,
// createdUserId: req.user.sub,
// createdFullName: req.user.name,
// lastUpdateUserId: req.user.sub,
// lastUpdateFullName: req.user.name,
// });
await Promise.all([
this.profileRepo.save(profile),
this.profileRepo.save(profile),
this.salaryRepository.save(profileSalary),
this.profileDisciplineRepo.save(profileDiscipline)
// this.profileDisciplineRepo.save(profileDiscipline)
]);
return new HttpSuccess();