Fix bug
This commit is contained in:
		
							parent
							
								
									2d590df900
								
							
						
					
					
						commit
						343f2f1f33
					
				
					 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue