no message

This commit is contained in:
AdisakKanthawilang 2025-05-07 17:57:43 +07:00
parent 3d1179adc7
commit ea7040f462

View file

@ -5804,7 +5804,7 @@ export class CommandController extends Controller {
body.refIds.map(async (item) => {
const profile = await this.profileEmployeeRepository.findOne({
where: { id: item.refId },
relations: ["roleKeycloaks",],
relations: ["roleKeycloaks"],
});
if (!profile) {
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
@ -5815,8 +5815,6 @@ export class CommandController extends Controller {
orgRevisionIsDraft: false,
},
});
const orgRevisionRef =
profile?.current_holders?.find((x) => x.orgRevisionId == orgRevision?.id) ?? null;
const _posMaster = await this.employeePosMasterRepository.findOne({
where: {
orgRevisionId: orgRevision?.id,