trying to fix container build time

This commit is contained in:
Torben Haack 2024-10-10 09:38:42 +02:00
parent 5817632299
commit 04c8252b91

View File

@ -10,6 +10,11 @@ interface RemainingTimeRouteProps {
};
}
export async function GET(request: Request, { params }: RemainingTimeRouteProps) {
// Trying to fix build error in container...
if (params.jobId === undefined) {
return Response.json({});
}
// Get the job details
const jobDetails = await db.query.printJobs.findFirst({
where: eq(printJobs.id, params.jobId),