X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Faudit-logger.ts;h=af37bce16cd0da150f6d780df1e7b6346c42e404;hb=2ba92871319d7af63472c1380664a9f9eeb1c690;hp=a121f0b8a1420d0bc783fc331918ce09b3ebd8ab;hpb=d74d29ad9e35929491cf37223398d2535ab23de0;p=github%2FChocobozzz%2FPeerTube.git 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' import * as winston from 'winston' import { CONFIG } from '../initializers' import { jsonLoggerFormat, labelFormatter } from './logger' -import { VideoDetails, User, VideoChannel, VideoAbuse, VideoImport } from '../../shared' +import { User, VideoAbuse, VideoChannel, VideoDetails, VideoImport } from '../../shared' import { VideoComment } from '../../shared/models/videos/video-comment.model' import { CustomConfig } from '../../shared/models/server/custom-config.model' -import { UserModel } from '../models/account/user' function getAuditIdFromRes (res: express.Response) { - return (res.locals.oauth.token.User as UserModel).username + return res.locals.oauth.token.User.username } enum AUDIT_TYPE {