From 61ab59e027cbe92cd08690a697e8fbf1d85a47d3 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Wed, 30 Oct 2024 10:41:53 +0700 Subject: [PATCH] chore: deprecate function --- src/stores/ocr/index.ts | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) 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;