From afa316097c9e4892cde8cf1d9390daf0879cf88f Mon Sep 17 00:00:00 2001 From: piratefinn Date: Mon, 18 Dec 2017 12:57:40 +0000 Subject: [PATCH] changed customer dashboard endpoint --- src/app/dashboard/dashboard-customer.component.ts | 2 +- src/app/dashboard/leaderboard.component.html | 4 ++-- src/app/providers/api-service.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/dashboard/dashboard-customer.component.ts b/src/app/dashboard/dashboard-customer.component.ts index e781f78..b304d54 100644 --- a/src/app/dashboard/dashboard-customer.component.ts +++ b/src/app/dashboard/dashboard-customer.component.ts @@ -114,7 +114,7 @@ export class DashboardCustomerComponent implements OnInit { constructor( private api: ApiService, ) { - this.api.basicStats().subscribe( + this.api.customerStats().subscribe( result => { this.setWeekPurchaseList(result.weeks); this.setSectorList(result.sectors); diff --git a/src/app/dashboard/leaderboard.component.html b/src/app/dashboard/leaderboard.component.html index 34345f3..c5014ea 100644 --- a/src/app/dashboard/leaderboard.component.html +++ b/src/app/dashboard/leaderboard.component.html @@ -23,8 +23,8 @@ Position - Value - Purchase Time + Name + Amount diff --git a/src/app/providers/api-service.ts b/src/app/providers/api-service.ts index 9533acd..131eee3 100644 --- a/src/app/providers/api-service.ts +++ b/src/app/providers/api-service.ts @@ -286,10 +286,10 @@ export class ApiService { } // Basic Customer User stats API - public basicStats() { + public customerStats() { const key = this.sessionKey; return this.http.post( - this.apiUrl + '/stats', + this.apiUrl + '/stats/customer', { session_key : key, }