add: withdraw profit
This commit is contained in:
		| @@ -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); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user