From 90f754c0bd3dafd15afb51d62ae6d23f46b2c3a9 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 23 Sep 2024 13:04:39 +0700 Subject: [PATCH] no message --- src/controllers/ProfileController.ts | 4 ++-- src/controllers/ProfileEmployeeController.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index cd35f4f6..35c9d701 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -249,7 +249,7 @@ export class ProfileController extends Controller { : "-", PositionName: profile.position != null ? profile.position : "-", OcFullPath: `${_child4}${_child3}${_child2}${_child1}${_root}`, - ImgUrl: ImgUrl ? ImgUrl : null + ImgUrl: ImgUrl ? ImgUrl : `${process.env.API_URL}/assets/avatar_user-89f22423.jpg` }; return new HttpSuccess(mapData); @@ -450,7 +450,7 @@ export class ProfileController extends Controller { ? Extension.ToThaiNumber(profiles.currentProvince.name) : "", // AvatarId: profiles?.avatar ?? null, - ImgUrl: ImgUrl ? ImgUrl : null + ImgUrl: ImgUrl ? ImgUrl : `${process.env.API_URL}/assets/avatar_user-89f22423.jpg` }; const certs = await this.certificateRepository.find({ diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index c123be2b..cc427c0a 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -255,7 +255,7 @@ export class ProfileEmployeeController extends Controller { : "-", PositionName: profile.position != null ? profile.position : "-", OcFullPath: `${_child4}${_child3}${_child2}${_child1}${_root}`, - ImgUrl: ImgUrl ? ImgUrl : null + ImgUrl: ImgUrl ? ImgUrl : `${process.env.API_URL}/assets/avatar_user-89f22423.jpg` }; return new HttpSuccess(mapData); @@ -459,7 +459,7 @@ export class ProfileEmployeeController extends Controller { ? Extension.ToThaiNumber(profiles.currentProvince.name) : "", // AvatarId: profiles?.avatar ?? null, - ImgUrl: ImgUrl ? ImgUrl : null + ImgUrl: ImgUrl ? ImgUrl : `${process.env.API_URL}/assets/avatar_user-89f22423.jpg` }; const certs = await this.certificateRepository.find({