1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-23 22:56:49 +09:00

Fix peers API returning suspended instances (#9348)

* Fix peers API returning suspended instances

* Fix missing comma
This commit is contained in:
Effy Elden 2022-12-19 11:00:13 +11:00 committed by GitHub
parent ac0a59835e
commit 5e448deb03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,9 @@ export class ApiServerService {
fastify.get('/v1/instance/peers', async (request, reply) => {
const instances = await this.instancesRepository.find({
select: ['host'],
where: {
isSuspended: false,
},
});
return instances.map(instance => instance.host);