chore: deprecate function

This commit is contained in:
Methapon Metanipat 2024-10-30 10:41:53 +07:00
parent aff61a50c4
commit 61ab59e027

View file

@ -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;