แก้ไขชื่อ
This commit is contained in:
parent
640668decb
commit
cbb4862deb
4 changed files with 155 additions and 7 deletions
|
|
@ -117,6 +117,7 @@ export class ProfileChangeNameEmployeeController extends Controller {
|
|||
profile.firstName = body.firstName ?? profile.firstName;
|
||||
profile.lastName = body.lastName ?? profile.lastName;
|
||||
profile.prefix = body.prefix ?? profile.prefix;
|
||||
profile.prefixMain = profile.rank ?? profile.prefix;
|
||||
await this.profileEmployeeRepo.save(profile, { data: req });
|
||||
setLogDataDiff(req, { before, after: profile });
|
||||
|
||||
|
|
@ -181,6 +182,7 @@ export class ProfileChangeNameEmployeeController extends Controller {
|
|||
profile.firstName = body.firstName ?? profile.firstName;
|
||||
profile.lastName = body.lastName ?? profile.lastName;
|
||||
profile.prefix = body.prefix ?? profile.prefix;
|
||||
profile.prefixMain = profile.rank ?? profile.prefix;
|
||||
await this.profileEmployeeRepo.save(profile);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue