diff --git a/server/initializers/database.ts b/server/initializers/database.ts index eedaf3c4e..633d4f956 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts @@ -25,7 +25,7 @@ import { CONFIG } from './config' import { ScheduleVideoUpdateModel } from '../models/video/schedule-video-update' import { VideoCaptionModel } from '../models/video/video-caption' import { VideoImportModel } from '../models/video/video-import' -import { VideoViewModel } from '../models/video/video-views' +import { VideoViewModel } from '../models/video/video-view' import { VideoChangeOwnershipModel } from '../models/video/video-change-ownership' import { VideoRedundancyModel } from '../models/redundancy/video-redundancy' import { UserVideoHistoryModel } from '../models/account/user-video-history' diff --git a/server/lib/job-queue/handlers/video-views.ts b/server/lib/job-queue/handlers/video-views.ts index 7211df237..897235ec0 100644 --- a/server/lib/job-queue/handlers/video-views.ts +++ b/server/lib/job-queue/handlers/video-views.ts @@ -1,7 +1,7 @@ import { Redis } from '../../redis' import { logger } from '../../../helpers/logger' import { VideoModel } from '../../../models/video/video' -import { VideoViewModel } from '../../../models/video/video-views' +import { VideoViewModel } from '../../../models/video/video-view' import { isTestInstance } from '../../../helpers/core-utils' import { federateVideoIfNeeded } from '../../activitypub/videos' diff --git a/server/lib/schedulers/remove-old-views-scheduler.ts b/server/lib/schedulers/remove-old-views-scheduler.ts index 5ae87fe50..73577a421 100644 --- a/server/lib/schedulers/remove-old-views-scheduler.ts +++ b/server/lib/schedulers/remove-old-views-scheduler.ts @@ -2,7 +2,7 @@ import { logger } from '../../helpers/logger' import { AbstractScheduler } from './abstract-scheduler' import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants' import { CONFIG } from '../../initializers/config' -import { VideoViewModel } from '../../models/video/video-views' +import { VideoViewModel } from '../../models/video/video-view' export class RemoveOldViewsScheduler extends AbstractScheduler { diff --git a/server/models/video/video-views.ts b/server/models/video/video-view.ts similarity index 100% rename from server/models/video/video-views.ts rename to server/models/video/video-view.ts diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 5aa40220e..ae2483b2f 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -76,7 +76,7 @@ import { ScheduleVideoUpdateModel } from './schedule-video-update' import { VideoCaptionModel } from './video-caption' import { VideoBlacklistModel } from './video-blacklist' import { remove } from 'fs-extra' -import { VideoViewModel } from './video-views' +import { VideoViewModel } from './video-view' import { VideoRedundancyModel } from '../redundancy/video-redundancy' import { videoFilesModelToFormattedJSON,