mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-25 16:42:05 +00:00
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:
parent
23e26fb830
commit
337854c86a
1 changed files with 1 additions and 1 deletions
|
@ -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[];
|
||||
|
|
Loading…
Reference in a new issue