@@ -30,7 +30,7 @@ export default async function RenderQueuePage() {
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{exports.map((item) => (
|
{exports.map((item: any) => (
|
||||||
<tr key={item.id} className="border-t border-border/60">
|
<tr key={item.id} className="border-t border-border/60">
|
||||||
<td className="px-4 py-3 font-mono">{item.shot?.shotCode ?? item.shotId}</td>
|
<td className="px-4 py-3 font-mono">{item.shot?.shotCode ?? item.shotId}</td>
|
||||||
<td className="px-4 py-3">{item.versionString}</td>
|
<td className="px-4 py-3">{item.versionString}</td>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export async function POST(req: NextRequest) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const body = await req.json();
|
const body = await req.json();
|
||||||
const parsed = createExportSchema.parse(body);
|
const parsed = createExportSchema.parse(body) as Parameters<typeof createRenderExport>[0];
|
||||||
const result = await createRenderExport(parsed);
|
const result = await createRenderExport(parsed);
|
||||||
return NextResponse.json(result, { status: 201 });
|
return NextResponse.json(result, { status: 201 });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -169,7 +169,6 @@ export async function getLatestExportForShot(shotId: string) {
|
|||||||
include: {
|
include: {
|
||||||
shot: { select: { shotCode: true, project: { select: { code: true } } } },
|
shot: { select: { shotCode: true, project: { select: { code: true } } } },
|
||||||
renderJobs: { orderBy: [{ createdAt: "desc" }], take: 1 },
|
renderJobs: { orderBy: [{ createdAt: "desc" }], take: 1 },
|
||||||
validations: true,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user