mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
refactor(user): lazy-load relations
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
16c9d6c011
commit
3539216cf3
4 changed files with 17 additions and 17 deletions
|
@ -78,7 +78,7 @@ createConnection({
|
|||
notes[i].revisions = Promise.all([revision]);
|
||||
notes[i].userPermissions = Promise.resolve([]);
|
||||
notes[i].groupPermissions = Promise.resolve([]);
|
||||
user.ownedNotes = [notes[i]];
|
||||
user.ownedNotes = Promise.resolve([notes[i]]);
|
||||
await connection.manager.save([
|
||||
notes[i],
|
||||
user,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue