Skip to content
Snippets Groups Projects
Unverified Commit 5e448deb authored by Effy Elden's avatar Effy Elden Committed by GitHub
Browse files

Fix peers API returning suspended instances (#9348)

* Fix peers API returning suspended instances

* Fix missing comma
parent ac0a5983
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment