feat: lazy load identities of user object

This makes it possible that we can get identities from any user object even if we didn't specify that while getting them from the orm

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-09-04 22:13:16 +02:00 committed by Yannick Bungers
parent b2da8a2b95
commit e37caf1e6a

View file

@ -59,7 +59,7 @@ export class User {
authTokens: AuthToken[];
@OneToMany((_) => Identity, (identity) => identity.user)
identities: Identity[];
identities: Promise<Identity[]>;
@ManyToMany((_) => Group, (group) => group.members)
groups: Group[];