diff options
Diffstat (limited to 'server/helpers/audit-logger.ts')
-rw-r--r-- | server/helpers/audit-logger.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/helpers/audit-logger.ts b/server/helpers/audit-logger.ts index a121f0b8a..af37bce16 100644 --- a/server/helpers/audit-logger.ts +++ b/server/helpers/audit-logger.ts | |||
@@ -6,13 +6,12 @@ import * as flatten from 'flat' | |||
6 | import * as winston from 'winston' | 6 | import * as winston from 'winston' |
7 | import { CONFIG } from '../initializers' | 7 | import { CONFIG } from '../initializers' |
8 | import { jsonLoggerFormat, labelFormatter } from './logger' | 8 | import { jsonLoggerFormat, labelFormatter } from './logger' |
9 | import { VideoDetails, User, VideoChannel, VideoAbuse, VideoImport } from '../../shared' | 9 | import { User, VideoAbuse, VideoChannel, VideoDetails, VideoImport } from '../../shared' |
10 | import { VideoComment } from '../../shared/models/videos/video-comment.model' | 10 | import { VideoComment } from '../../shared/models/videos/video-comment.model' |
11 | import { CustomConfig } from '../../shared/models/server/custom-config.model' | 11 | import { CustomConfig } from '../../shared/models/server/custom-config.model' |
12 | import { UserModel } from '../models/account/user' | ||
13 | 12 | ||
14 | function getAuditIdFromRes (res: express.Response) { | 13 | function getAuditIdFromRes (res: express.Response) { |
15 | return (res.locals.oauth.token.User as UserModel).username | 14 | return res.locals.oauth.token.User.username |
16 | } | 15 | } |
17 | 16 | ||
18 | enum AUDIT_TYPE { | 17 | enum AUDIT_TYPE { |