diff options
Diffstat (limited to 'shared/extra-utils/users')
-rw-r--r-- | shared/extra-utils/users/users.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/extra-utils/users/users.ts b/shared/extra-utils/users/users.ts index db532dbb0..6040dd9c0 100644 --- a/shared/extra-utils/users/users.ts +++ b/shared/extra-utils/users/users.ts | |||
@@ -4,7 +4,7 @@ import { UserUpdateMe } from '../../models/users' | |||
4 | import { UserAdminFlag } from '../../models/users/user-flag.model' | 4 | import { UserAdminFlag } from '../../models/users/user-flag.model' |
5 | import { UserRegister } from '../../models/users/user-register.model' | 5 | import { UserRegister } from '../../models/users/user-register.model' |
6 | import { UserRole } from '../../models/users/user-role' | 6 | import { UserRole } from '../../models/users/user-role' |
7 | import { makeGetRequest, makePostBodyRequest, makePutBodyRequest, updateAvatarRequest } from '../requests/requests' | 7 | import { makeGetRequest, makePostBodyRequest, makePutBodyRequest, updateImageRequest } from '../requests/requests' |
8 | import { ServerInfo } from '../server/servers' | 8 | import { ServerInfo } from '../server/servers' |
9 | import { userLogin } from './login' | 9 | import { userLogin } from './login' |
10 | import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' | 10 | import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' |
@@ -275,7 +275,7 @@ function updateMyAvatar (options: { | |||
275 | }) { | 275 | }) { |
276 | const path = '/api/v1/users/me/avatar/pick' | 276 | const path = '/api/v1/users/me/avatar/pick' |
277 | 277 | ||
278 | return updateAvatarRequest(Object.assign(options, { path })) | 278 | return updateImageRequest({ ...options, path, fieldname: 'avatarfile' }) |
279 | } | 279 | } |
280 | 280 | ||
281 | function updateUser (options: { | 281 | function updateUser (options: { |