no message
This commit is contained in:
parent
3d1179adc7
commit
ea7040f462
1 changed files with 1 additions and 3 deletions
|
|
@ -5804,7 +5804,7 @@ export class CommandController extends Controller {
|
||||||
body.refIds.map(async (item) => {
|
body.refIds.map(async (item) => {
|
||||||
const profile = await this.profileEmployeeRepository.findOne({
|
const profile = await this.profileEmployeeRepository.findOne({
|
||||||
where: { id: item.refId },
|
where: { id: item.refId },
|
||||||
relations: ["roleKeycloaks",],
|
relations: ["roleKeycloaks"],
|
||||||
});
|
});
|
||||||
if (!profile) {
|
if (!profile) {
|
||||||
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
|
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
|
||||||
|
|
@ -5815,8 +5815,6 @@ export class CommandController extends Controller {
|
||||||
orgRevisionIsDraft: false,
|
orgRevisionIsDraft: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const orgRevisionRef =
|
|
||||||
profile?.current_holders?.find((x) => x.orgRevisionId == orgRevision?.id) ?? null;
|
|
||||||
const _posMaster = await this.employeePosMasterRepository.findOne({
|
const _posMaster = await this.employeePosMasterRepository.findOne({
|
||||||
where: {
|
where: {
|
||||||
orgRevisionId: orgRevision?.id,
|
orgRevisionId: orgRevision?.id,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue