fix
This commit is contained in:
parent
a7e12be51f
commit
5edcb127f9
1 changed files with 9 additions and 7 deletions
|
|
@ -4707,15 +4707,17 @@ export class CommandController extends Controller {
|
||||||
if (!profile) {
|
if (!profile) {
|
||||||
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
|
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
|
||||||
}
|
}
|
||||||
|
const orgRevision = await this.orgRevisionRepository.findOne({
|
||||||
|
where: {
|
||||||
|
orgRevisionIsCurrent: true,
|
||||||
|
orgRevisionIsDraft: false
|
||||||
|
}
|
||||||
|
});
|
||||||
const _posMaster = await this.employeePosMasterRepository.findOne({
|
const _posMaster = await this.employeePosMasterRepository.findOne({
|
||||||
where: {
|
where: {
|
||||||
orgRevision: {
|
orgRevisionId: orgRevision?.id,
|
||||||
orgRevisionIsCurrent: true,
|
current_holderId: profile.id
|
||||||
orgRevisionIsDraft: false,
|
|
||||||
},
|
|
||||||
current_holderId: profile.id,
|
|
||||||
},
|
},
|
||||||
order: { createdAt: "DESC" },
|
|
||||||
relations: {
|
relations: {
|
||||||
orgRoot: true,
|
orgRoot: true,
|
||||||
orgChild1: true,
|
orgChild1: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue