From d2515fcdc492057ea9193848f415a40e987e0236 Mon Sep 17 00:00:00 2001 From: kj1352 Date: Tue, 1 Dec 2020 15:09:50 +0530 Subject: [PATCH] Update Profile API connection parmeter changes --- src/app/profile/profile.page.html | 4 ++-- src/app/profile/profile.page.ts | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/app/profile/profile.page.html b/src/app/profile/profile.page.html index 742e46e..2352fc9 100644 --- a/src/app/profile/profile.page.html +++ b/src/app/profile/profile.page.html @@ -6,8 +6,8 @@
- {{ userInfo.name }} - + {{ userInfo.name }} + diff --git a/src/app/profile/profile.page.ts b/src/app/profile/profile.page.ts index 99ffe29..b1fd661 100644 --- a/src/app/profile/profile.page.ts +++ b/src/app/profile/profile.page.ts @@ -25,14 +25,12 @@ export class ProfilePage implements OnInit { this.userInfo = JSON.parse(localStorage.userInfo)['User Info']; } - updateUserInfo() { + updateUserInfo() { let tempUserInfo = { - id: this.userInfo.id, - name: this.userInfo.name, + user_id: this.userInfo.id, username: this.userInfo.username, + user_mobile: this.userInfo.mobile, email: this.userInfo.email, - mobile: this.userInfo.mobile, - address: [] } this.authService.updateUser(tempUserInfo).then((data) => {