X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Faudit-logger.ts;h=884bd187d3ae6135b3811ab91c5a7726a625eb94;hb=883a9019085ff9013079d6b1539b86f2f519175a;hp=954b0b69da8a3abe9666c3484c562d8712d38092;hpb=d95d15598847c7f020aa056e7e6e0c02d2bbf732;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/audit-logger.ts b/server/helpers/audit-logger.ts index 954b0b69d..884bd187d 100644 --- a/server/helpers/audit-logger.ts +++ b/server/helpers/audit-logger.ts @@ -5,9 +5,9 @@ import { chain } from 'lodash' import * as path from 'path' import * as winston from 'winston' import { AUDIT_LOG_FILENAME } from '@server/initializers/constants' -import { Abuse, User, VideoChannel, VideoDetails, VideoImport } from '../../shared' +import { AdminAbuse, User, VideoChannel, VideoDetails, VideoImport } from '../../shared' import { CustomConfig } from '../../shared/models/server/custom-config.model' -import { VideoComment } from '../../shared/models/videos/video-comment.model' +import { VideoComment } from '../../shared/models/videos/comment/video-comment.model' import { CONFIG } from '../initializers/config' import { jsonLoggerFormat, labelFormatter } from './logger' @@ -219,7 +219,7 @@ const abuseKeysToKeep = [ 'createdAt' ] class AbuseAuditView extends EntityAuditView { - constructor (private readonly abuse: Abuse) { + constructor (private readonly abuse: AdminAbuse) { super(abuseKeysToKeep, 'abuse', abuse) } }