Merge branch 'develop' of gitlab.com:empatnusabangsa/ppob/ppob-frontend into develop
This commit is contained in:
@@ -53,7 +53,7 @@ export class Authentication {
|
||||
async getProfile() {
|
||||
try {
|
||||
const response = await http.get('/auth/profile');
|
||||
this.profileData = response.body.data;
|
||||
this.profileData = response.body;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
throw e;
|
||||
|
||||
@@ -20,7 +20,7 @@ export class Transaction {
|
||||
total_dataSubCategories = 0;
|
||||
|
||||
pageHistoryTransaction = 0;
|
||||
pageSizeHistoryTransaction = 10
|
||||
// pageSizeHistoryTransaction = 10
|
||||
dataHistoryTransaction = [];
|
||||
total_dataHistoryTransaction = 0;
|
||||
|
||||
@@ -53,7 +53,7 @@ export class Transaction {
|
||||
}
|
||||
|
||||
async getDataHistoryTransaction() {
|
||||
const response = await http.get(`/transaction/history?page=${this.pageHistoryTransaction}&pageSize=${this.pageSizeHistoryTransaction}`);
|
||||
const response = await http.get(`/transaction/history?page=${this.pageHistoryTransaction}`);
|
||||
|
||||
this.dataHistoryTransaction = response.body.data ?? []
|
||||
this.total_dataHistoryTransaction = response.body.total_data ?? 0
|
||||
|
||||
Reference in New Issue
Block a user