fix: Update stucked builds on startup

This commit is contained in:
Andras Bacsai 2022-04-05 10:34:31 +02:00
parent 7ab5a4bfcf
commit b1c25e98d7

View File

@ -50,6 +50,11 @@ async function main() {
} }
}); });
} }
// Update stucked builds
await prisma.build.updateMany({
where: { status: 'running' },
data: { status: 'success' }
});
} }
main() main()
.catch((e) => { .catch((e) => {