fix(AntennaService): use UserEntityService instead of repository
This commit is contained in:
parent
4d20fbeb52
commit
1a1fafc43f
2 changed files with 5 additions and 5 deletions
|
@ -142,7 +142,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
} else {
|
||||
const q: FindOptionsWhere<MiUser> = ps.userId != null
|
||||
? { id: ps.userId }
|
||||
: { usernameLower: ps.username!.toLowerCase(), host: IsNull() };
|
||||
: { usernameLower: ps.username?.toLowerCase(), host: IsNull() };
|
||||
|
||||
user = await this.usersRepository.findOneBy(q);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue