diff --git a/packages/backend/src/core/AccountUpdateService.ts b/packages/backend/src/core/AccountUpdateService.ts index a6a411873d..3178730b45 100644 --- a/packages/backend/src/core/AccountUpdateService.ts +++ b/packages/backend/src/core/AccountUpdateService.ts @@ -28,7 +28,7 @@ export class AccountUpdateService { @bindThis public async publishToFollowers(userId: MiUser['id']) { - console.time('AccountUpdateService.publishToFollowers'); + console.time('time AccountUpdateService.publishToFollowers'); const user = await this.usersRepository.findOneBy({ id: userId }); if (user == null) throw new Error('user not found'); @@ -38,6 +38,6 @@ export class AccountUpdateService { this.apDeliverManagerService.deliverToFollowers(user, content); this.relayService.deliverToRelays(user, content); } - console.timeEnd('AccountUpdateService.publishToFollowers'); + console.timeEnd('time AccountUpdateService.publishToFollowers'); } } diff --git a/packages/backend/src/core/GlobalEventService.ts b/packages/backend/src/core/GlobalEventService.ts index ebbefedf94..d7964bec99 100644 --- a/packages/backend/src/core/GlobalEventService.ts +++ b/packages/backend/src/core/GlobalEventService.ts @@ -344,9 +344,9 @@ export class GlobalEventService { @bindThis public publishMainStream(userId: MiUser['id'], type: K, value?: MainEventTypes[K]): void { - console.time('GlobalEventService.publishMainStream'); + console.time('time GlobalEventService.publishMainStream'); this.publish(`mainStream:${userId}`, type, typeof value === 'undefined' ? null : value); - console.time('GlobalEventService.publishMainStream'); + console.time('time GlobalEventService.publishMainStream'); } @bindThis