ออกคำสั่ง

This commit is contained in:
kittapath 2024-10-04 15:35:14 +07:00
parent b9bc5b1298
commit e0672ceca0
3 changed files with 656 additions and 18 deletions

View file

@ -160,7 +160,7 @@ export class ProfileEmployeeController extends Controller {
},
});
ImgUrl = response_.data.downloadUrl;
} catch { }
} catch {}
}
const province = await this.provinceRepository.findOneBy({
id: profile.registrationProvinceId,
@ -328,7 +328,7 @@ export class ProfileEmployeeController extends Controller {
},
});
ImgUrl = response_.data.downloadUrl;
} catch { }
} catch {}
}
const profileOc = await this.profileRepo.findOne({
relations: [
@ -3151,7 +3151,6 @@ export class ProfileEmployeeController extends Controller {
where: { id: id },
});
if (!profile) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
// await new permission().PermissionOrgUserUpdate(request, "SYS_REGISTRY_EMP", profile.id);//ไม่แน่ใจEMPปิดไว้ก่อน
profile.isLeave = requestBody.isLeave;
profile.leaveReason = requestBody.leaveReason;