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,
|
||||
uri: user.uri,
|
||||
movedToUri: user.movedToUri
|
||||
? await this.userFromURI(user.movedToUri).catch(
|
||||
() => user.movedToUri,
|
||||
)
|
||||
? await this.userFromURI(user.movedToUri).catch(() => null)
|
||||
: null,
|
||||
alsoKnownAs: user.alsoKnownAs,
|
||||
createdAt: user.createdAt.toISOString(),
|
||||
|
|
Loading…
Reference in a new issue