diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/audit-logger.ts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/server/helpers/audit-logger.ts b/server/helpers/audit-logger.ts index f6eea7d90..031b1bfbd 100644 --- a/server/helpers/audit-logger.ts +++ b/server/helpers/audit-logger.ts | |||
@@ -5,7 +5,7 @@ import * as flatten from 'flat' | |||
5 | import * as winston from 'winston' | 5 | import * as winston from 'winston' |
6 | import { CONFIG } from '../initializers' | 6 | import { CONFIG } from '../initializers' |
7 | import { jsonLoggerFormat, labelFormatter } from './logger' | 7 | import { jsonLoggerFormat, labelFormatter } from './logger' |
8 | import { VideoDetails, User, VideoChannel, VideoAbuse } from '../../shared' | 8 | import { VideoDetails, User, VideoChannel, VideoAbuse, VideoImport } from '../../shared' |
9 | import { VideoComment } from '../../shared/models/videos/video-comment.model' | 9 | import { VideoComment } from '../../shared/models/videos/video-comment.model' |
10 | import { CustomConfig } from '../../shared/models/server/custom-config.model' | 10 | import { CustomConfig } from '../../shared/models/server/custom-config.model' |
11 | 11 | ||
@@ -119,6 +119,17 @@ class VideoAuditView extends EntityAuditView { | |||
119 | } | 119 | } |
120 | } | 120 | } |
121 | 121 | ||
122 | const videoImportKeysToKeep = [ | ||
123 | 'id', | ||
124 | 'targetUrl', | ||
125 | 'video-name' | ||
126 | ] | ||
127 | class VideoImportAuditView extends EntityAuditView { | ||
128 | constructor (private videoImport: VideoImport) { | ||
129 | super(videoImportKeysToKeep, 'video-import', videoImport) | ||
130 | } | ||
131 | } | ||
132 | |||
122 | const commentKeysToKeep = [ | 133 | const commentKeysToKeep = [ |
123 | 'id', | 134 | 'id', |
124 | 'text', | 135 | 'text', |
@@ -246,6 +257,7 @@ class CustomConfigAuditView extends EntityAuditView { | |||
246 | 257 | ||
247 | export { | 258 | export { |
248 | auditLoggerFactory, | 259 | auditLoggerFactory, |
260 | VideoImportAuditView, | ||
249 | VideoChannelAuditView, | 261 | VideoChannelAuditView, |
250 | CommentAuditView, | 262 | CommentAuditView, |
251 | UserAuditView, | 263 | UserAuditView, |