no message

This commit is contained in:
Kittapath 2024-08-08 09:14:08 +07:00
parent 3a32b07272
commit be7f719fd5

View file

@ -2188,6 +2188,7 @@ export class EmployeePositionController extends Controller {
) {
const posMaster = await this.employeePosMasterRepository.findOne({
where: { id: body.posmasterId },
relations: ["orgRoot"],
});
if (posMaster == null) throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลตำแหน่งนี้");