empAddress and fix durationYear

This commit is contained in:
AdisakKanthawilang 2024-05-16 10:32:51 +07:00
parent da4eb54a59
commit ffb5b38936
6 changed files with 274 additions and 7 deletions

View file

@ -242,7 +242,7 @@ export class ProfileController extends Controller {
profile.lastUpdateUserId = request.user.sub;
profile.lastUpdateFullName = request.user.name;
profile.dateRetire = calculateRetireDate(profile.birthDate);
profile.dateRetireLaw = calculateRetireDate(profile.birthDate);
// profile.dateRetireLaw = calculateRetireDate(profile.birthDate);
await this.profileRepo.save(profile);
@ -383,7 +383,7 @@ export class ProfileController extends Controller {
record.lastUpdateUserId = request.user.sub;
record.lastUpdateFullName = request.user.name;
record.dateRetire = calculateRetireDate(record.birthDate);
record.dateRetireLaw = calculateRetireDate(record.birthDate);
// record.dateRetireLaw = calculateRetireDate(record.birthDate);
await this.profileRepo.save(record);
return new HttpSuccess();