no message
This commit is contained in:
parent
ac42957b91
commit
538ec8f8a1
1 changed files with 12 additions and 12 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue