add: withdraw profit

This commit is contained in:
ilham
2022-01-05 19:51:06 +07:00
parent 6aba46aca3
commit 853c849523
2 changed files with 27 additions and 2 deletions

View File

@@ -119,6 +119,16 @@ export class Membership {
console.error(e);
}
}
async withdrawProfit(id) {
try {
const response = await http.put(`/transaction/withdraw/${id}`);
await this.getData();
return response;
} catch (e) {
console.error(e);
}
}
}