mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-17 00:24:43 -04:00
refactor(author): lazy-load relations
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
de6d75238c
commit
5d7b544e1f
4 changed files with 10 additions and 10 deletions
|
@ -67,7 +67,7 @@ createConnection({
|
|||
const identity = Identity.create(user, ProviderType.LOCAL, false);
|
||||
identity.passwordHash = await hashPassword(password);
|
||||
connection.manager.create(Identity, identity);
|
||||
author.user = user;
|
||||
author.user = Promise.resolve(user);
|
||||
const revision = Revision.create(
|
||||
'This is a test note',
|
||||
'This is a test note',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue