diff --git a/src/pages/Agencies/PackagesView.vue b/src/pages/Agencies/PackagesView.vue index 922db3e6..fd2d1ab4 100644 --- a/src/pages/Agencies/PackagesView.vue +++ b/src/pages/Agencies/PackagesView.vue @@ -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);