Update ProfileController.ts
This commit is contained in:
parent
13e565d2d4
commit
a0b4bef3a4
1 changed files with 64 additions and 62 deletions
|
|
@ -301,7 +301,8 @@ export class ProfileController extends Controller {
|
||||||
const _child3 = child3 ? `${child3.orgChild3Name}/` : "";
|
const _child3 = child3 ? `${child3.orgChild3Name}/` : "";
|
||||||
const _child4 = child4 ? `${child4.orgChild4Name}/` : "";
|
const _child4 = child4 ? `${child4.orgChild4Name}/` : "";
|
||||||
|
|
||||||
const Profile = {
|
const Profile = [
|
||||||
|
{
|
||||||
CitizenId:
|
CitizenId:
|
||||||
profiles.citizenId != null ? Extension.ToThaiNumber(profiles.citizenId.toString()) : "",
|
profiles.citizenId != null ? Extension.ToThaiNumber(profiles.citizenId.toString()) : "",
|
||||||
Prefix: profiles?.prefix != null ? profiles.prefix : "",
|
Prefix: profiles?.prefix != null ? profiles.prefix : "",
|
||||||
|
|
@ -365,7 +366,8 @@ export class ProfileController extends Controller {
|
||||||
? Extension.ToThaiNumber(profiles.dateRetireLaw.toString())
|
? Extension.ToThaiNumber(profiles.dateRetireLaw.toString())
|
||||||
: "",
|
: "",
|
||||||
// AvatarId: profiles?.avatar ?? null,
|
// AvatarId: profiles?.avatar ?? null,
|
||||||
};
|
},
|
||||||
|
];
|
||||||
|
|
||||||
const certs = await this.certificateRepository.find({
|
const certs = await this.certificateRepository.find({
|
||||||
where: { profileId: id },
|
where: { profileId: id },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue