From 7bc3a1f21e3178767f67b48a7489779d6a731b4e Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 28 Oct 2019 15:05:37 +0100 Subject: [PATCH] fixed SelfService --- src/app/services/selfservice/self.service.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app/services/selfservice/self.service.ts b/src/app/services/selfservice/self.service.ts index 282a11b..9eb582b 100644 --- a/src/app/services/selfservice/self.service.ts +++ b/src/app/services/selfservice/self.service.ts @@ -45,16 +45,16 @@ export class SelfService { public updateUserInfo(response : any){ const user: User = new User(); user.loggedIn = true; - user.userID = response.data.login.id; - user.username = response.data.login.name; - user.handle = response.data.login.handle; - user.email = response.data.login.email; - user.points = response.data.login.points; - user.level = response.data.login.level; - user.friendIDs = response.data.login.friends; - user.groupIDs = response.data.login.groups; - user.chatIDs = response.data.login.chats; - user.requestIDs = response.data.login.requests; + user.userID = response.data.getSelf.id; + user.username = response.data.getSelf.name; + user.handle = response.data.getSelf.handle; + user.email = response.data.getSelf.email; + user.points = response.data.getSelf.points; + user.level = response.data.getSelf.level; + user.friendIDs = response.data.getSelf.friends; + user.groupIDs = response.data.getSelf.groups; + user.chatIDs = response.data.getSelf.chats; + user.requestIDs = response.data.getSelf.requests; this.data.changeUserInfo(user) }