can regenerate pdfs, because sometimes the ai gets it wrong, and we need to help it out

This commit is contained in:
DaKheera47
2025-12-17 17:48:03 +00:00
parent deb30efa44
commit 8a236c0be9
7 changed files with 53 additions and 16 deletions
+3 -2
View File
@@ -56,8 +56,9 @@ export async function updateJob(
});
}
export async function processJob(id: string): Promise<Job> {
return fetchApi<Job>(`/jobs/${id}/process`, {
export async function processJob(id: string, options?: { force?: boolean }): Promise<Job> {
const query = options?.force ? '?force=1' : '';
return fetchApi<Job>(`/jobs/${id}/process${query}`, {
method: 'POST',
});
}