This commit is contained in:
AdisakKanthawilang 2024-05-01 14:52:30 +07:00
parent a03b23ce35
commit 0ae8eb1f1f
2 changed files with 2 additions and 2 deletions

View file

@ -288,7 +288,7 @@ export class PositionController extends Controller {
requestBody.posExecutiveId = _null; requestBody.posExecutiveId = _null;
} }
if (requestBody.posExecutiveId != null) { if (requestBody.posExecutiveId != null && requestBody.posExecutiveId != "" ) {
const checkPosExecutiveId = await this.posExecutiveRepository.findOne({ const checkPosExecutiveId = await this.posExecutiveRepository.findOne({
where: { id: requestBody.posExecutiveId }, where: { id: requestBody.posExecutiveId },
}); });

View file

@ -146,7 +146,7 @@ export class UpdatePosDict {
posLevelId: string; posLevelId: string;
@Column() @Column()
posExecutiveId?: string; posExecutiveId?: string | undefined;
@Column() @Column()
posDictExecutiveField: string; posDictExecutiveField: string;