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 David Mehren
parent 23e26fb830
commit 337854c86a
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

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[];