From b0f8d3dcb690e67c093bb23f2016a95e3cf3d53b Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 6 Feb 2024 16:23:06 +0700 Subject: [PATCH] fix --- src/entities/PosMaster.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/entities/PosMaster.ts b/src/entities/PosMaster.ts index 786afd05..bc541017 100644 --- a/src/entities/PosMaster.ts +++ b/src/entities/PosMaster.ts @@ -168,13 +168,13 @@ export class PosMaster extends EntityBase { @JoinColumn({ name: "orgChild4Id" }) orgChild4: OrgChild4; - @ManyToOne(() => PosMaster, (posMaster) => posMaster.current_holder) + @ManyToOne(() => Profile, (posMaster) => posMaster.current_holders) @JoinColumn({ name: "current_holderId" }) - current_holder: Profile[]; + current_holder: Profile; - @ManyToOne(() => PosMaster, (posMaster) => posMaster.next_holder) + @ManyToOne(() => Profile, (posMaster) => posMaster.next_holders) @JoinColumn({ name: "next_holderId" }) - next_holder: Profile[]; + next_holder: Profile; @OneToMany(() => Position, (position) => position.posMaster) positions: Position[];