Don't send activities to dead instances

Co-authored-by: Johann150 <johann.galle@protonmail.com>
This commit is contained in:
Laura Hausmann 2024-01-29 21:46:44 +01:00
parent 565c2efbe5
commit 0d28b07203
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -39,7 +39,8 @@ export async function skippedInstances(
}) })
.andWhere( .andWhere(
new Brackets((qb) => { new Brackets((qb) => {
qb.where("instance.isSuspended"); qb.where("instance.isSuspended")
.orWhere("instance.lastCommunicatedAt < :deadTime", { deadTime });
}), }),
) )
.select("host") .select("host")