Fix peers API returning suspended instances (#9348)
* Fix peers API returning suspended instances * Fix missing comma
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user