doc detail use it this way

This commit is contained in:
shamoon committed 2026-10-20 14:00:25 -07:00
1 parent bbdc016a32
commit f0597a7c54
8 files changed
+168 -20

No files matched your search

@@ -367,10 +367,13 @@ export class DocumentService extends AbstractPaperlessService<Document> {
})
}
runZoneOcr(id: number): Observable<OcrZoneRunResponse> {
runZoneOcr(
id: number,
templateId: number | null = null
): Observable<OcrZoneRunResponse> {
return this.http.post<OcrZoneRunResponse>(
this.getResourceUrl(id, 'run-zone-ocr'),
{}
templateId ? { template: templateId } : {}
)
}