diff --git a/src/stores/ocr/index.ts b/src/stores/ocr/index.ts index b3e6a24e..6fd8ef48 100644 --- a/src/stores/ocr/index.ts +++ b/src/stores/ocr/index.ts @@ -1,23 +1,11 @@ -import { ref } from 'vue'; -import { api } from 'src/boot/axios'; +import axios from 'axios'; import { defineStore } from 'pinia'; -import axios from 'axios'; - +/** @deprecated */ const useOcr = defineStore('useOcrStore', () => { const baseUrl = import.meta.env.VITE_API_BASE_URL_OCR; - async function sendOcr( - payload: { - file: File; - category: string; - }, - flow?: { - sessionId?: string; - refTransactionId?: string; - transactionId?: string; - }, - ) { + async function sendOcr(payload: { file: File; category: string }) { const res = await axios .post<{ document: string;