From b1c25e98d70a0ab9419158472d5b0b8f10cd3a21 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 5 Apr 2022 10:34:31 +0200 Subject: [PATCH] fix: Update stucked builds on startup --- prisma/seed.cjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/prisma/seed.cjs b/prisma/seed.cjs index 61f3928f6..cc5225fa4 100644 --- a/prisma/seed.cjs +++ b/prisma/seed.cjs @@ -50,6 +50,11 @@ async function main() { } }); } + // Update stucked builds + await prisma.build.updateMany({ + where: { status: 'running' }, + data: { status: 'success' } + }); } main() .catch((e) => {