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) {