refactor(ApPersonService.ts): function return type

This commit is contained in:
okayurisotto 2023-07-02 19:08:41 +09:00
parent 4535728625
commit a40ea8163e

View file

@ -594,7 +594,7 @@ export class ApPersonService implements OnModuleInit {
}
@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 });
if (!this.userEntityService.isRemoteUser(user)) return;
if (!user.featured) return;