This commit is contained in:
AdisakKanthawilang 2024-03-15 11:42:28 +07:00
parent 36e8a796c7
commit 29f4326e9b

View file

@ -227,7 +227,7 @@ export class EmployeePositionController extends Controller {
@Get("position/{id}")
async detailPosition(@Path() id: string) {
const posMaster = await this.employeePosMasterRepository.findOne({
where: { id },
where: { id:id },
});
if (!posMaster) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");