Skip to content

Commit

Permalink
fix: update OCR version (#335)
Browse files Browse the repository at this point in the history
* fix: update OCR version

* fix: update OCR version
  • Loading branch information
kunzms authored Jun 23, 2020
1 parent ca0bd0c commit 6114d64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const apiVersion = "v2.1-preview.1";
*/
export const constants = {
version: "pubpreview_1.0",
apiVersion,
projectFormTempKey: "projectForm",
projectFileExtensionOld: ".vott",
projectFileExtension: ".fott",
Expand Down
2 changes: 1 addition & 1 deletion src/services/ocrService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class OCRService {
headers = { "Content-Type": "application/json" };
}
const response = await ServiceHelper.postWithAutoRetry(
this.project.apiUriBase + "/formrecognizer/v2.0-preview/layout/analyze",
this.project.apiUriBase + `/formrecognizer/${constants.apiVersion}/layout/analyze`,
body,
{ headers },
this.project.apiKey as string,
Expand Down

0 comments on commit 6114d64

Please sign in to comment.