fix: add API payback confirmation
This commit is contained in:
@@ -80,4 +80,17 @@ export class Payback {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
async confirmPayback(id, data) {
|
||||
try {
|
||||
const response = await http.put(`/transaction/deposit-return/confirmation/${id}`).send(data);
|
||||
await Promise.all([
|
||||
this.getDataConfirmation(),
|
||||
this.getDataCreated()
|
||||
])
|
||||
return response;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user