fix (backend): movedToUri should be either User or null
Co-authored-by: naskya <m@naskya.net>
This commit is contained in:
parent
cd48818753
commit
aaa0b7edde
1 changed files with 1 additions and 3 deletions
|
@ -494,9 +494,7 @@ export const UserRepository = db.getRepository(User).extend({
|
||||||
url: profile!.url,
|
url: profile!.url,
|
||||||
uri: user.uri,
|
uri: user.uri,
|
||||||
movedToUri: user.movedToUri
|
movedToUri: user.movedToUri
|
||||||
? await this.userFromURI(user.movedToUri).catch(
|
? await this.userFromURI(user.movedToUri).catch(() => null)
|
||||||
() => user.movedToUri,
|
|
||||||
)
|
|
||||||
: null,
|
: null,
|
||||||
alsoKnownAs: user.alsoKnownAs,
|
alsoKnownAs: user.alsoKnownAs,
|
||||||
createdAt: user.createdAt.toISOString(),
|
createdAt: user.createdAt.toISOString(),
|
||||||
|
|
Loading…
Reference in a new issue