WIP: fix: use salix for myTpvTransaction_end #127

Draft
ldragan wants to merge 2 commits from ldragan/hedera-web:taro/tpv into beta
1 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,8 @@
import { defineStore } from 'pinia';
import { jApi } from 'boot/axios';
import { inject } from 'vue';
const api = inject('api');
export const tpvStore = defineStore('tpv', {
actions: {
@ -8,9 +11,10 @@ export const tpvStore = defineStore('tpv', {
const status = route.query.tpvStatus;
if (!(order && status)) return null;
await jApi.execQuery('CALL myTpvTransaction_end(#order, #status)', {
order,
status
await api.post('applications/myTpvTransaction_end/execute-proc', {
schema: 'hedera',
params: [order, status],
});
if (status === 'ko') {