@@ -30,7 +30,7 @@ export default async function RenderQueuePage() {
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{exports.map((item) => (
|
||||
{exports.map((item: any) => (
|
||||
<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">{item.versionString}</td>
|
||||
|
||||
@@ -35,7 +35,7 @@ export async function POST(req: NextRequest) {
|
||||
|
||||
try {
|
||||
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);
|
||||
return NextResponse.json(result, { status: 201 });
|
||||
} catch (error) {
|
||||
|
||||
@@ -169,7 +169,6 @@ export async function getLatestExportForShot(shotId: string) {
|
||||
include: {
|
||||
shot: { select: { shotCode: true, project: { select: { code: true } } } },
|
||||
renderJobs: { orderBy: [{ createdAt: "desc" }], take: 1 },
|
||||
validations: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user