are
This commit is contained in:
parent
b1c751fa3a
commit
103c4190eb
3 changed files with 4 additions and 3 deletions
|
|
@ -28,6 +28,7 @@ export class AccountUpdateService {
|
|||
|
||||
@bindThis
|
||||
public async publishToFollowers(userId: MiUser['id']) {
|
||||
console.time('AccountUpdateService.publishToFollowers');
|
||||
const user = await this.usersRepository.findOneBy({ id: userId });
|
||||
if (user == null) throw new Error('user not found');
|
||||
|
||||
|
|
@ -37,5 +38,6 @@ export class AccountUpdateService {
|
|||
this.apDeliverManagerService.deliverToFollowers(user, content);
|
||||
this.relayService.deliverToRelays(user, content);
|
||||
}
|
||||
console.timeEnd('AccountUpdateService.publishToFollowers');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue