X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Faudit-logger.ts;h=6aae5e82112725fc6d843d91c68315e4469741e8;hb=6f4945126bfc5fcd4df0ae4a73eb0ff79f762657;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..6aae5e821 100644 --- a/server/helpers/audit-logger.ts +++ b/server/helpers/audit-logger.ts @@ -5,7 +5,7 @@ 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 { CONFIG } from '../initializers/config' @@ -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) } }