fix(remove-all-followings): invalid DI symbol problem

This commit is contained in:
オスカー、 2024-08-17 19:58:29 +09:00
parent ee45180539
commit a30be3e35e
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7

View File

@ -16,7 +16,6 @@ export const meta = {
requireCredential: true, requireCredential: true,
requireAdmin: true, requireAdmin: true,
secure: true,
kind: 'write:admin:federation', kind: 'write:admin:federation',
errors: { errors: {
@ -42,7 +41,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
@Inject(DI.usersRepository) @Inject(DI.usersRepository)
private usersRepository: UsersRepository, private usersRepository: UsersRepository,
@Inject(DI.notesRepository) @Inject(DI.followingsRepository)
private followingsRepository: FollowingsRepository, private followingsRepository: FollowingsRepository,
@Inject(DI.instancesRepository) @Inject(DI.instancesRepository)
@ -59,10 +58,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
} }
const followings = await this.followingsRepository.findBy({ const followings = await this.followingsRepository.findBy({
followerHost: ps.host, followerHost: instance.host,
}); });
const followers = await this.followingsRepository.findBy({ const followers = await this.followingsRepository.findBy({
followeeHost: ps.host, followeeHost: instance.host,
}); });
const followingPairs = await Promise.all(followings.map(f => Promise.all([ const followingPairs = await Promise.all(followings.map(f => Promise.all([