Migrate add profileChangeName.rank #1594
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m0s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m0s
This commit is contained in:
parent
1e9b282942
commit
1e69cf6bb7
6 changed files with 43 additions and 0 deletions
|
|
@ -112,6 +112,7 @@ export class ProfileChangeNameController extends Controller {
|
|||
profile.firstName = body.firstName ?? profile.firstName;
|
||||
profile.lastName = body.lastName ?? profile.lastName;
|
||||
profile.prefix = body.prefix ?? profile.prefix;
|
||||
profile.rank = body.rank ?? profile.rank;
|
||||
profile.prefixMain = profile.rank ?? profile.prefix;
|
||||
await this.profileRepository.save(profile, { data: req });
|
||||
setLogDataDiff(req, { before, after: profile });
|
||||
|
|
@ -184,6 +185,7 @@ export class ProfileChangeNameController extends Controller {
|
|||
profile.firstName = body.firstName ?? profile.firstName;
|
||||
profile.lastName = body.lastName ?? profile.lastName;
|
||||
profile.prefix = body.prefix ?? profile.prefix;
|
||||
profile.rank = body.rank ?? profile.rank;
|
||||
profile.prefixMain = profile.rank ?? profile.prefix;
|
||||
await this.profileRepository.save(profile, { data: req });
|
||||
setLogDataDiff(req, { before: before_profile, after: profile });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue