diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index 27d2671c..d50a3431 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -6594,6 +6594,7 @@ export class CommandController extends Controller { profile.amountSpecial = item.bodyProfile.amountSpecial ?? null; profile.isProbation = item.bodyProfile.isProbation; //เพิ่มใหม่จากรับโอน + profile.rank = item.bodyProfile.rank ?? null; profile.prefix = item.bodyProfile.prefix ?? null; profile.prefixMain = item.bodyProfile.prefix ?? null; profile.firstName = item.bodyProfile.firstName ?? null; @@ -6657,6 +6658,7 @@ export class CommandController extends Controller { profile.amount = item.bodyProfile.amount ?? null; profile.amountSpecial = item.bodyProfile.amountSpecial ?? null; profile.isProbation = item.bodyProfile.isProbation; + profile.rank = item.bodyProfile.rank ?? null; profile.prefix = item.bodyProfile.prefix ?? null; profile.prefixMain = item.bodyProfile.prefix ?? null; profile.firstName = item.bodyProfile.firstName ?? null; @@ -6715,6 +6717,7 @@ export class CommandController extends Controller { profile.lastUpdateFullName = req.user.name; profile.lastUpdatedAt = new Date(); //เพิ่มใหม่จากรับโอน + profile.rank = item.bodyProfile.rank ?? null; profile.prefix = item.bodyProfile.prefix && item.bodyProfile.prefix != "" ? item.bodyProfile.prefix