diff options
Diffstat (limited to 'util/src/entities/ConnectedAccount.ts')
-rw-r--r-- | util/src/entities/ConnectedAccount.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/src/entities/ConnectedAccount.ts b/util/src/entities/ConnectedAccount.ts index e48bc322..75982d01 100644 --- a/util/src/entities/ConnectedAccount.ts +++ b/util/src/entities/ConnectedAccount.ts @@ -4,11 +4,12 @@ import { User } from "./User"; @Entity("connected_accounts") export class ConnectedAccount extends BaseClass { + @Column({ nullable: true }) @RelationId((account: ConnectedAccount) => account.user) user_id: string; @JoinColumn({ name: "user_id" }) - @ManyToOne(() => User, (user: User) => user.connected_accounts) + @ManyToOne(() => User) user: User; @Column({ select: false }) |