diff options
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/users/user.model.ts | 4 | ||||
-rw-r--r-- | client/src/app/core/users/user.service.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/core/users/user.model.ts b/client/src/app/core/users/user.model.ts index f211051ce..6ba30e4b8 100644 --- a/client/src/app/core/users/user.model.ts +++ b/client/src/app/core/users/user.model.ts | |||
@@ -132,8 +132,8 @@ export class User implements UserServerModel { | |||
132 | } | 132 | } |
133 | } | 133 | } |
134 | 134 | ||
135 | updateAccountAvatar (newAccountAvatar?: ActorImage) { | 135 | updateAccountAvatar (newAccountAvatars?: ActorImage[]) { |
136 | if (newAccountAvatar) this.account.updateAvatar(newAccountAvatar) | 136 | if (newAccountAvatars) this.account.updateAvatar(newAccountAvatars) |
137 | else this.account.resetAvatar() | 137 | else this.account.resetAvatar() |
138 | } | 138 | } |
139 | 139 | ||
diff --git a/client/src/app/core/users/user.service.ts b/client/src/app/core/users/user.service.ts index b14bff193..b4024c02d 100644 --- a/client/src/app/core/users/user.service.ts +++ b/client/src/app/core/users/user.service.ts | |||
@@ -118,7 +118,7 @@ export class UserService { | |||
118 | changeAvatar (avatarForm: FormData) { | 118 | changeAvatar (avatarForm: FormData) { |
119 | const url = UserService.BASE_USERS_URL + 'me/avatar/pick' | 119 | const url = UserService.BASE_USERS_URL + 'me/avatar/pick' |
120 | 120 | ||
121 | return this.authHttp.post<{ avatar: ActorImage }>(url, avatarForm) | 121 | return this.authHttp.post<{ avatars: ActorImage[] }>(url, avatarForm) |
122 | .pipe(catchError(err => this.restExtractor.handleError(err))) | 122 | .pipe(catchError(err => this.restExtractor.handleError(err))) |
123 | } | 123 | } |
124 | 124 | ||