WIP: fix: use salix for myTpvTransaction_end #127
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue
Si
order
ostatus
no son numéricos, esto debería incluir comillas.creo que con JSON.stringify se debería resolver.
Al menos así lo hemos hecho en Lilium