diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-14 09:31:41 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 1e1265b36c09df1465aa2b4866815c957b6a532e (patch) | |
tree | 0ac1b7398c1c941fb653fd27fe037fadae24871d /client/src/app/core/auth/auth.service.ts | |
parent | 8e6964874990d5ee9d3703be71c6ab4617b9ce20 (diff) | |
download | PeerTube-1e1265b36c09df1465aa2b4866815c957b6a532e.tar.gz PeerTube-1e1265b36c09df1465aa2b4866815c957b6a532e.tar.zst PeerTube-1e1265b36c09df1465aa2b4866815c957b6a532e.zip |
Make the client compile too
Diffstat (limited to 'client/src/app/core/auth/auth.service.ts')
-rw-r--r-- | client/src/app/core/auth/auth.service.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/core/auth/auth.service.ts b/client/src/app/core/auth/auth.service.ts index 913c857e3..0aa276c69 100644 --- a/client/src/app/core/auth/auth.service.ts +++ b/client/src/app/core/auth/auth.service.ts | |||
@@ -42,7 +42,7 @@ interface UserLoginWithUserInformation extends UserLogin { | |||
42 | displayNSFW: boolean | 42 | displayNSFW: boolean |
43 | email: string | 43 | email: string |
44 | videoQuota: number | 44 | videoQuota: number |
45 | author: { | 45 | account: { |
46 | id: number | 46 | id: number |
47 | uuid: string | 47 | uuid: string |
48 | } | 48 | } |
@@ -208,7 +208,7 @@ export class AuthService { | |||
208 | this.user.displayNSFW = res.displayNSFW | 208 | this.user.displayNSFW = res.displayNSFW |
209 | this.user.role = res.role | 209 | this.user.role = res.role |
210 | this.user.videoChannels = res.videoChannels | 210 | this.user.videoChannels = res.videoChannels |
211 | this.user.author = res.author | 211 | this.user.account = res.account |
212 | 212 | ||
213 | this.user.save() | 213 | this.user.save() |
214 | } | 214 | } |
@@ -227,7 +227,7 @@ export class AuthService { | |||
227 | displayNSFW: res.displayNSFW, | 227 | displayNSFW: res.displayNSFW, |
228 | email: res.email, | 228 | email: res.email, |
229 | videoQuota: res.videoQuota, | 229 | videoQuota: res.videoQuota, |
230 | author: res.author, | 230 | account: res.account, |
231 | videoChannels: res.videoChannels | 231 | videoChannels: res.videoChannels |
232 | } | 232 | } |
233 | 233 | ||
@@ -245,7 +245,7 @@ export class AuthService { | |||
245 | displayNSFW: obj.displayNSFW, | 245 | displayNSFW: obj.displayNSFW, |
246 | videoQuota: obj.videoQuota, | 246 | videoQuota: obj.videoQuota, |
247 | videoChannels: obj.videoChannels, | 247 | videoChannels: obj.videoChannels, |
248 | author: obj.author | 248 | account: obj.account |
249 | } | 249 | } |
250 | const hashTokens = { | 250 | const hashTokens = { |
251 | accessToken: obj.access_token, | 251 | accessToken: obj.access_token, |