mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
Fix bug
This commit is contained in:
parent
99786612eb
commit
9c990842ee
1 changed files with 6 additions and 2 deletions
|
@ -19,11 +19,15 @@ export class AuthSession {
|
|||
})
|
||||
public token: string;
|
||||
|
||||
@Column(id())
|
||||
@Column({
|
||||
...id(),
|
||||
nullable: true
|
||||
})
|
||||
public userId: User['id'];
|
||||
|
||||
@ManyToOne(type => User, {
|
||||
onDelete: 'CASCADE'
|
||||
onDelete: 'CASCADE',
|
||||
nullable: true
|
||||
})
|
||||
@JoinColumn()
|
||||
public user: User | null;
|
||||
|
|
Loading…
Reference in a new issue