From f6725e6941e761691d3ab0143c119537f31d1a68 Mon Sep 17 00:00:00 2001 From: Olu Amey Date: Sun, 13 Sep 2020 01:22:19 -0400 Subject: [PATCH] fix --- src/app/blog/blog.page.ts | 47 --------------------------------------- 1 file changed, 47 deletions(-) diff --git a/src/app/blog/blog.page.ts b/src/app/blog/blog.page.ts index e6e870b..72f18df 100644 --- a/src/app/blog/blog.page.ts +++ b/src/app/blog/blog.page.ts @@ -30,52 +30,5 @@ export class BlogPage implements OnInit { } - // ---- - userPointData: { - sessionid: string - member_id: number - limit: number - } - - refreshBlog() { - this.userPointData = { - sessionid: "", - member_id: 1, - limit: 10, - } - - try { - this.floatServiceProvider - .genericService('pointsdetail', this.userPointData) - .subscribe((pointsDetailData) => { - // console.log("getslidecarddata:"); - if ( - pointsDetailData.hasOwnProperty('result_list') && - Array.isArray(pointsDetailData['result_list']) - ) { - this.pointsDetailData = pointsDetailData['result_list'] - - for (const i in this.pointsDetailData) { - if (this.pointsDetailData.hasOwnProperty(i)) { - // model the date string to be parsable by the browser - let strDate = this.pointsDetailData[i]['added'].replace( - /-/g, - '/' - ) - strDate = strDate.split(' ')[0] - const dateObj = new Date(strDate) - this.pointsDetailData[i]['formated_date'] = this.formatDate( - dateObj - ) - } - } - // console.log("points detail data: ", this.pointsDetailData); - } - }) - } catch (e) { - console.log(e) - } - } - }