mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 23:51:01 -07:00
Fix peers API returning suspended instances (#9296)
This commit is contained in:
commit
e41ce95e57
1 changed files with 3 additions and 0 deletions
|
@ -91,6 +91,9 @@ router.use(twitter.routes());
|
|||
router.get('/v1/instance/peers', async ctx => {
|
||||
const instances = await Instances.find({
|
||||
select: ['host'],
|
||||
where: {
|
||||
isSuspended: false,
|
||||
},
|
||||
});
|
||||
|
||||
ctx.body = instances.map(instance => instance.host);
|
||||
|
|
Loading…
Reference in a new issue