mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 04:43:09 +02:00
Fix peers API returning suspended instances (#9348)
* Fix peers API returning suspended instances * Fix missing comma
This commit is contained in:
parent
ac0a59835e
commit
5e448deb03
1 changed files with 3 additions and 0 deletions
|
@ -138,6 +138,9 @@ export class ApiServerService {
|
||||||
fastify.get('/v1/instance/peers', async (request, reply) => {
|
fastify.get('/v1/instance/peers', async (request, reply) => {
|
||||||
const instances = await this.instancesRepository.find({
|
const instances = await this.instancesRepository.find({
|
||||||
select: ['host'],
|
select: ['host'],
|
||||||
|
where: {
|
||||||
|
isSuspended: false,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return instances.map(instance => instance.host);
|
return instances.map(instance => instance.host);
|
||||||
|
|
Loading…
Reference in a new issue