From a30be3e35ea26d3ea8f06a8107593ec783b4651d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B4=EB=9D=BC=EC=BF=A0=EB=AA=A8?= Date: Sat, 17 Aug 2024 19:58:29 +0900 Subject: [PATCH] fix(remove-all-followings): invalid DI symbol problem --- .../api/endpoints/admin/federation/remove-all-following.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/admin/federation/remove-all-following.ts b/packages/backend/src/server/api/endpoints/admin/federation/remove-all-following.ts index e7696c9b1..6ef84b516 100644 --- a/packages/backend/src/server/api/endpoints/admin/federation/remove-all-following.ts +++ b/packages/backend/src/server/api/endpoints/admin/federation/remove-all-following.ts @@ -16,7 +16,6 @@ export const meta = { requireCredential: true, requireAdmin: true, - secure: true, kind: 'write:admin:federation', errors: { @@ -42,7 +41,7 @@ export default class extends Endpoint { // eslint- @Inject(DI.usersRepository) private usersRepository: UsersRepository, - @Inject(DI.notesRepository) + @Inject(DI.followingsRepository) private followingsRepository: FollowingsRepository, @Inject(DI.instancesRepository) @@ -59,10 +58,10 @@ export default class extends Endpoint { // eslint- } const followings = await this.followingsRepository.findBy({ - followerHost: ps.host, + followerHost: instance.host, }); const followers = await this.followingsRepository.findBy({ - followeeHost: ps.host, + followeeHost: instance.host, }); const followingPairs = await Promise.all(followings.map(f => Promise.all([