From f514aa676d7bbac84c6c51c2ca2badddd746ca79 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 10 Feb 2022 22:10:02 +0100 Subject: [PATCH] fix: Status is not available yet --- src/routes/applications/[id]/logs/build/build.json.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/applications/[id]/logs/build/build.json.ts b/src/routes/applications/[id]/logs/build/build.json.ts index 38a51e043..da6956939 100644 --- a/src/routes/applications/[id]/logs/build/build.json.ts +++ b/src/routes/applications/[id]/logs/build/build.json.ts @@ -14,12 +14,12 @@ export const get: RequestHandler = async (event) => { where: { buildId, time: { gt: sequence } }, orderBy: { time: 'asc' } }); - const { status } = await db.prisma.build.findFirst({ where: { id: buildId } }); + const data = await db.prisma.build.findFirst({ where: { id: buildId } }); return { body: { logs, - status + status: data?.status || 'running' } }; } catch (error) {