diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-23 14:10:17 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-23 16:00:49 +0200 |
commit | 67ed6552b831df66713bac9e672738796128d33f (patch) | |
tree | 59c97d41e0b49d75a90aa3de987968ab9b1ff447 /server/controllers/api/users/me.ts | |
parent | 0c4bacbff53bc732f5a2677d62a6ead7752e2405 (diff) | |
download | PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.gz PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.zst PeerTube-67ed6552b831df66713bac9e672738796128d33f.zip |
Reorganize client shared modules
Diffstat (limited to 'server/controllers/api/users/me.ts')
-rw-r--r-- | server/controllers/api/users/me.ts | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/server/controllers/api/users/me.ts b/server/controllers/api/users/me.ts index 23890e20c..914c52e27 100644 --- a/server/controllers/api/users/me.ts +++ b/server/controllers/api/users/me.ts | |||
@@ -1,9 +1,15 @@ | |||
1 | import * as express from 'express' | ||
2 | import 'multer' | 1 | import 'multer' |
3 | import { UserUpdateMe, UserVideoRate as FormattedUserVideoRate } from '../../../../shared' | 2 | import * as express from 'express' |
3 | import { UserUpdateMe, UserVideoRate as FormattedUserVideoRate, VideoSortField } from '../../../../shared' | ||
4 | import { UserVideoQuota } from '../../../../shared/models/users/user-video-quota.model' | ||
5 | import { createReqFiles } from '../../../helpers/express-utils' | ||
4 | import { getFormattedObjects } from '../../../helpers/utils' | 6 | import { getFormattedObjects } from '../../../helpers/utils' |
7 | import { CONFIG } from '../../../initializers/config' | ||
5 | import { MIMETYPES } from '../../../initializers/constants' | 8 | import { MIMETYPES } from '../../../initializers/constants' |
9 | import { sequelizeTypescript } from '../../../initializers/database' | ||
6 | import { sendUpdateActor } from '../../../lib/activitypub/send' | 10 | import { sendUpdateActor } from '../../../lib/activitypub/send' |
11 | import { updateActorAvatarFile } from '../../../lib/avatar' | ||
12 | import { sendVerifyUserEmail } from '../../../lib/user' | ||
7 | import { | 13 | import { |
8 | asyncMiddleware, | 14 | asyncMiddleware, |
9 | asyncRetryTransactionMiddleware, | 15 | asyncRetryTransactionMiddleware, |
@@ -15,19 +21,12 @@ import { | |||
15 | usersVideoRatingValidator | 21 | usersVideoRatingValidator |
16 | } from '../../../middlewares' | 22 | } from '../../../middlewares' |
17 | import { deleteMeValidator, videoImportsSortValidator, videosSortValidator } from '../../../middlewares/validators' | 23 | import { deleteMeValidator, videoImportsSortValidator, videosSortValidator } from '../../../middlewares/validators' |
24 | import { updateAvatarValidator } from '../../../middlewares/validators/avatar' | ||
25 | import { AccountModel } from '../../../models/account/account' | ||
18 | import { AccountVideoRateModel } from '../../../models/account/account-video-rate' | 26 | import { AccountVideoRateModel } from '../../../models/account/account-video-rate' |
19 | import { UserModel } from '../../../models/account/user' | 27 | import { UserModel } from '../../../models/account/user' |
20 | import { VideoModel } from '../../../models/video/video' | 28 | import { VideoModel } from '../../../models/video/video' |
21 | import { VideoSortField } from '../../../../client/src/app/shared/video/sort-field.type' | ||
22 | import { createReqFiles } from '../../../helpers/express-utils' | ||
23 | import { UserVideoQuota } from '../../../../shared/models/users/user-video-quota.model' | ||
24 | import { updateAvatarValidator } from '../../../middlewares/validators/avatar' | ||
25 | import { updateActorAvatarFile } from '../../../lib/avatar' | ||
26 | import { VideoImportModel } from '../../../models/video/video-import' | 29 | import { VideoImportModel } from '../../../models/video/video-import' |
27 | import { AccountModel } from '../../../models/account/account' | ||
28 | import { CONFIG } from '../../../initializers/config' | ||
29 | import { sequelizeTypescript } from '../../../initializers/database' | ||
30 | import { sendVerifyUserEmail } from '../../../lib/user' | ||
31 | 30 | ||
32 | const reqAvatarFile = createReqFiles([ 'avatarfile' ], MIMETYPES.IMAGE.MIMETYPE_EXT, { avatarfile: CONFIG.STORAGE.TMP_DIR }) | 31 | const reqAvatarFile = createReqFiles([ 'avatarfile' ], MIMETYPES.IMAGE.MIMETYPE_EXT, { avatarfile: CONFIG.STORAGE.TMP_DIR }) |
33 | 32 | ||