fix: Status is not available yet
This commit is contained in:
parent
73fc9755dd
commit
f514aa676d
@ -14,12 +14,12 @@ export const get: RequestHandler = async (event) => {
|
|||||||
where: { buildId, time: { gt: sequence } },
|
where: { buildId, time: { gt: sequence } },
|
||||||
orderBy: { time: 'asc' }
|
orderBy: { time: 'asc' }
|
||||||
});
|
});
|
||||||
const { status } = await db.prisma.build.findFirst({ where: { id: buildId } });
|
const data = await db.prisma.build.findFirst({ where: { id: buildId } });
|
||||||
|
|
||||||
return {
|
return {
|
||||||
body: {
|
body: {
|
||||||
logs,
|
logs,
|
||||||
status
|
status: data?.status || 'running'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user