From 7f9ac61174130d56daf16110705b5c9e9ae10cdc Mon Sep 17 00:00:00 2001 From: mattyatea Date: Tue, 14 May 2024 05:17:18 +0900 Subject: [PATCH] update --- packages/backend/src/core/CacheService.ts | 2 +- packages/backend/src/server/api/endpoints/i/update.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/core/CacheService.ts b/packages/backend/src/core/CacheService.ts index d008e7ec52..653993c3d9 100644 --- a/packages/backend/src/core/CacheService.ts +++ b/packages/backend/src/core/CacheService.ts @@ -130,7 +130,7 @@ export class CacheService implements OnApplicationShutdown { case 'userChangeSuspendedState': case 'userChangeDeletedState': case 'remoteUserUpdated': - case 'localUserUpdated': { + { const user = await this.usersRepository.findOneBy({ id: body.id }); if (user == null) { this.userByIdCache.delete(body.id); diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts index ee51930036..8dcfb21991 100644 --- a/packages/backend/src/server/api/endpoints/i/update.ts +++ b/packages/backend/src/server/api/endpoints/i/update.ts @@ -484,15 +484,15 @@ export default class extends Endpoint { // eslint- // 鍵垢を解除したとき、溜まっていたフォローリクエストがあるならすべて承認 if (user.isLocked && ps.isLocked === false) { - this.userFollowingService.acceptAllFollowRequests(user); + await this.userFollowingService.acceptAllFollowRequests(user); } // フォロワーにUpdateを配信 - this.accountUpdateService.publishToFollowers(user.id); + await this.accountUpdateService.publishToFollowers(user.id); const urls = updatedProfile.fields.filter(x => x.value.startsWith('https://')); for (const url of urls) { - this.verifyLink(url.value, user); + await this.verifyLink(url.value, user); } return iObj; });