This commit is contained in:
harid 2026-06-17 16:53:26 +07:00
parent db36b250e3
commit 12da167794
5 changed files with 9 additions and 8 deletions

View file

@ -5801,7 +5801,8 @@ export class ProfileController extends Controller {
Object.assign(record, body);
record.dateRetireLaw = calculateRetireLaw(record.birthDate);
record.prefixMain = record.prefix;
record.prefix = record.rank && record.rank.length > 0 ? record.rank : record.prefixMain;
// record.prefix = record.rank && record.rank.length > 0 ? record.rank : record.prefixMain;
record.prefix = record.rank && record.rank.length > 0 ? record.rank : record.prefix;
record.createdUserId = request.user.sub;
record.createdFullName = request.user.name;
record.createdAt = new Date();