fix: Only cleanup same app

This commit is contained in:
Andras Bacsai 2022-03-20 14:21:11 +01:00
parent 7b8555d524
commit 541aa76b64

View File

@ -56,7 +56,7 @@ export default async function (job) {
await asyncSleep(1000);
await db.prisma.build.updateMany({
where: { status: 'queued', id: { not: buildId } },
where: { status: 'queued', id: { not: buildId }, applicationId },
data: { status: 'failed' }
});
let imageId = applicationId;