fix: change api url approve payback
This commit is contained in:
parent
53a4108e09
commit
6a906d0234
|
@ -137,7 +137,7 @@ export const Payback = observer(() => {
|
||||||
const handleAction = async (id, type) => {
|
const handleAction = async (id, type) => {
|
||||||
modalLoader.setLoading(true);
|
modalLoader.setLoading(true);
|
||||||
try {
|
try {
|
||||||
const response = await store.payback.confirmPayback(id, {status: capitalize(type)});
|
const response = await store.payback.confirmPayback(id, type);
|
||||||
if (response.body.status !== 201) {
|
if (response.body.status !== 201) {
|
||||||
message.error(`Failed ${capitalize(type)} Payback`);
|
message.error(`Failed ${capitalize(type)} Payback`);
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@ export class Payback {
|
||||||
|
|
||||||
async confirmPayback(id, data) {
|
async confirmPayback(id, data) {
|
||||||
try {
|
try {
|
||||||
const response = await http.put(`/transaction/deposit-return/confirmation/${id}`).send(data);
|
const response = await http.put(`/transaction/deposit-return/confirmation/${id}/${data}`);
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
this.getDataConfirmation(),
|
this.getDataConfirmation(),
|
||||||
this.getDataCreated()
|
this.getDataCreated()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user