feat: migrate query agency volume procedure #131

Merged
jsegarra merged 1 commits from golguin/hedera-web:package-view-migrate into beta 2025-03-27 17:58:33 +00:00
1 changed files with 7 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n';
import VnTable from 'src/components/ui/VnTable.vue';
const jApi = inject('jApi');
const api = inject('api');
const { t } = useI18n();
const packages = ref([]);
@ -43,7 +43,12 @@ const columns = computed(() => [
const getPackages = async () => {
try {
const data = await jApi.query('CALL vn.agencyVolume()');
const { data } = await api.post(
'applications/agencyVolume/execute-proc',
{
schema: 'vn'
}
);
packages.value = data;
} catch (error) {
console.error(error);