add relation from user->user_profile to speed up UserEntityService.pack and packMany
This commit is contained in:
@@ -17,7 +17,7 @@ export class MiUserProfile {
|
||||
@PrimaryColumn(id())
|
||||
public userId: MiUser['id'];
|
||||
|
||||
@OneToOne(type => MiUser, {
|
||||
@OneToOne(() => MiUser, user => user.userProfile, {
|
||||
onDelete: 'CASCADE',
|
||||
})
|
||||
@JoinColumn()
|
||||
|
||||
Reference in New Issue
Block a user