mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-04-09 14:46:37 +09:00
refactor(ApPersonService.ts
): function return type
This commit is contained in:
parent
4535728625
commit
a40ea8163e
@ -594,7 +594,7 @@ export class ApPersonService implements OnModuleInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async updateFeatured(userId: User['id'], resolver?: Resolver) {
|
public async updateFeatured(userId: User['id'], resolver?: Resolver): Promise<void> {
|
||||||
const user = await this.usersRepository.findOneByOrFail({ id: userId });
|
const user = await this.usersRepository.findOneByOrFail({ id: userId });
|
||||||
if (!this.userEntityService.isRemoteUser(user)) return;
|
if (!this.userEntityService.isRemoteUser(user)) return;
|
||||||
if (!user.featured) return;
|
if (!user.featured) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user