fix(AntennaService): use UserEntityService instead of repository

This commit is contained in:
무라쿠모 2024-05-13 22:14:31 +09:00
parent 4d20fbeb52
commit 1a1fafc43f
No known key found for this signature in database
GPG key ID: 139D6573F92DA9F7
2 changed files with 5 additions and 5 deletions

View file

@ -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);
}