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) => {
|
||||
modalLoader.setLoading(true);
|
||||
try {
|
||||
const response = await store.payback.confirmPayback(id, {status: capitalize(type)});
|
||||
const response = await store.payback.confirmPayback(id, type);
|
||||
if (response.body.status !== 201) {
|
||||
message.error(`Failed ${capitalize(type)} Payback`);
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ export class Payback {
|
|||
|
||||
async confirmPayback(id, data) {
|
||||
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([
|
||||
this.getDataConfirmation(),
|
||||
this.getDataCreated()
|
||||
|
|
Loading…
Reference in New Issue
Block a user