mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-03-22 04:44:33 +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
b2da8a2b95
commit
e37caf1e6a
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