Compare commits
No commits in common. "51d447109ece988a30bd9564e7a7d809076a6e2b" and "e410f83683ee3a3e60408e498b95ba41741462c7" have entirely different histories.
51d447109e
...
e410f83683
3 changed files with 12 additions and 12 deletions
|
|
@ -114,8 +114,8 @@ export class ProfileChangeNameController extends Controller {
|
|||
// profile.prefix = body.prefix ?? profile.prefix; //old
|
||||
profile.rank = body.rank ?? profile.rank;
|
||||
// profile.prefixMain = profile.rank ?? profile.prefix; // old
|
||||
profile.prefixMain = body.prefix ?? profile.prefix;
|
||||
profile.prefix = body.rank && body.rank.length > 0 ? body.rank : body.prefix ?? profile.prefix;
|
||||
profile.prefixMain = profile.prefix;
|
||||
profile.prefix = profile.rank && profile.rank.length > 0 ? profile.rank : profile.prefix;
|
||||
|
||||
await this.profileRepository.save(profile, { data: req });
|
||||
setLogDataDiff(req, { before, after: profile });
|
||||
|
|
@ -190,8 +190,8 @@ export class ProfileChangeNameController extends Controller {
|
|||
// profile.prefix = body.prefix ?? profile.prefix; //old
|
||||
profile.rank = body.rank ?? profile.rank;
|
||||
// profile.prefixMain = profile.rank ?? profile.prefix; // old
|
||||
profile.prefixMain = body.prefix ?? profile.prefix;
|
||||
profile.prefix = body.rank && body.rank.length > 0 ? body.rank : body.prefix ?? profile.prefix;
|
||||
profile.prefixMain = profile.prefix;
|
||||
profile.prefix = profile.rank && profile.rank.length > 0 ? profile.rank : profile.prefix;
|
||||
await this.profileRepository.save(profile, { data: req });
|
||||
setLogDataDiff(req, { before: before_profile, after: profile });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,8 +120,8 @@ export class ProfileChangeNameEmployeeController extends Controller {
|
|||
// profile.prefix = body.prefix ?? profile.prefix; //old
|
||||
profile.rank = body.rank ?? profile.rank;
|
||||
// profile.prefixMain = profile.rank ?? profile.prefix; // old
|
||||
profile.prefixMain = body.prefix ?? profile.prefix;
|
||||
profile.prefix = body.rank && body.rank.length > 0 ? body.rank : body.prefix ?? profile.prefix;
|
||||
profile.prefixMain = profile.prefix;
|
||||
profile.prefix = profile.rank && profile.rank.length > 0 ? profile.rank : profile.prefix;
|
||||
await this.profileEmployeeRepo.save(profile, { data: req });
|
||||
setLogDataDiff(req, { before, after: profile });
|
||||
|
||||
|
|
@ -196,8 +196,8 @@ export class ProfileChangeNameEmployeeController extends Controller {
|
|||
// profile.prefix = body.prefix ?? profile.prefix; //old
|
||||
profile.rank = body.rank ?? profile.rank;
|
||||
// profile.prefixMain = profile.rank ?? profile.prefix; // old
|
||||
profile.prefixMain = body.prefix ?? profile.prefix;
|
||||
profile.prefix = body.rank && body.rank.length > 0 ? body.rank : body.prefix ?? profile.prefix;
|
||||
profile.prefixMain = profile.prefix;
|
||||
profile.prefix = profile.rank && profile.rank.length > 0 ? profile.rank : profile.prefix;
|
||||
await this.profileEmployeeRepo.save(profile);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -111,8 +111,8 @@ export class ProfileChangeNameEmployeeTempController extends Controller {
|
|||
// profile.prefix = body.prefix ?? profile.prefix; //old
|
||||
profile.rank = body.rank ?? profile.rank;
|
||||
// profile.prefixMain = profile.rank ?? profile.prefix; // old
|
||||
profile.prefixMain = body.prefix ?? profile.prefix;
|
||||
profile.prefix = body.rank && body.rank.length > 0 ? body.rank : body.prefix ?? profile.prefix;
|
||||
profile.prefixMain = profile.prefix;
|
||||
profile.prefix = profile.rank && profile.rank.length > 0 ? profile.rank : profile.prefix;
|
||||
await this.profileEmployeeRepo.save(profile, { data: req });
|
||||
setLogDataDiff(req, { before, after: profile });
|
||||
|
||||
|
|
@ -184,8 +184,8 @@ export class ProfileChangeNameEmployeeTempController extends Controller {
|
|||
// profile.prefix = body.prefix ?? profile.prefix; //old
|
||||
profile.rank = body.rank ?? profile.rank;
|
||||
// profile.prefixMain = profile.rank ?? profile.prefix; // old
|
||||
profile.prefixMain = body.prefix ?? profile.prefix;
|
||||
profile.prefix = body.rank && body.rank.length > 0 ? body.rank : body.prefix ?? profile.prefix;
|
||||
profile.prefixMain = profile.prefix;
|
||||
profile.prefix = profile.rank && profile.rank.length > 0 ? profile.rank : profile.prefix;
|
||||
await this.profileEmployeeRepo.save(profile);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue