diff --git a/packages/backend/src/core/AccountUpdateService.ts b/packages/backend/src/core/AccountUpdateService.ts index 3178730b45..69a57b4854 100644 --- a/packages/backend/src/core/AccountUpdateService.ts +++ b/packages/backend/src/core/AccountUpdateService.ts @@ -28,7 +28,6 @@ export class AccountUpdateService { @bindThis public async publishToFollowers(userId: MiUser['id']) { - console.time('time AccountUpdateService.publishToFollowers'); const user = await this.usersRepository.findOneBy({ id: userId }); if (user == null) throw new Error('user not found'); @@ -38,6 +37,5 @@ export class AccountUpdateService { this.apDeliverManagerService.deliverToFollowers(user, content); this.relayService.deliverToRelays(user, content); } - console.timeEnd('time AccountUpdateService.publishToFollowers'); } } diff --git a/packages/backend/src/misc/cache.ts b/packages/backend/src/misc/cache.ts index d4154ca16a..bba64a06ef 100644 --- a/packages/backend/src/misc/cache.ts +++ b/packages/backend/src/misc/cache.ts @@ -33,7 +33,6 @@ export class RedisKVCache { @bindThis public async set(key: string, value: T): Promise { - console.time('time RedisKVCache.set'); this.memoryCache.set(key, value); if (this.lifetime === Infinity) { await this.redisClient.set( @@ -47,7 +46,6 @@ export class RedisKVCache { 'EX', Math.round(this.lifetime / 1000), ); } - console.timeEnd('time RedisKVCache.set'); } @bindThis diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts index 1d02d71685..ee51930036 100644 --- a/packages/backend/src/server/api/endpoints/i/update.ts +++ b/packages/backend/src/server/api/endpoints/i/update.ts @@ -362,7 +362,7 @@ export default class extends Endpoint { // eslint- const [myRoles, myPolicies] = await Promise.all([this.roleService.getUserRoles(user.id), this.roleService.getUserPolicies(user.id)]); const allRoles = await this.roleService.getRoles(); const decorationIds = decorations - .filter(d => d.host === null && (d.roleIdsThatCanBeUsedThisDecoration.filter(roleId => allRoles.some(r => r.id === roleId)).length === 0 || myRoles.some(r => d.roleIdsThatCanBeUsedThisDecoration.includes(r.id)))) + .filter(d => (d.roleIdsThatCanBeUsedThisDecoration.filter(roleId => allRoles.some(r => r.id === roleId)).length === 0 || myRoles.some(r => d.roleIdsThatCanBeUsedThisDecoration.includes(r.id)))) .map(d => d.id); if (ps.avatarDecorations.length > myPolicies.avatarDecorationLimit) throw new ApiError(meta.errors.restrictedByRole); @@ -480,7 +480,7 @@ export default class extends Endpoint { // eslint- await this.cacheService.userProfileCache.set(user.id, updatedProfile); // Publish meUpdated event - //this.globalEventService.publishMainStream(user.id, 'meUpdated', iObj); + this.globalEventService.publishMainStream(user.id, 'meUpdated', iObj); // 鍵垢を解除したとき、溜まっていたフォローリクエストがあるならすべて承認 if (user.isLocked && ps.isLocked === false) {