From 538ec8f8a13f9914783465bb1558aebeb73cca9b Mon Sep 17 00:00:00 2001 From: Kittapath Date: Thu, 4 Jul 2024 18:32:26 +0700 Subject: [PATCH] no message --- src/controllers/ProfileController.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index efd97e9a..34981071 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -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();