diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-15 15:18:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-06-15 15:18:54 +0200 |
commit | fd261a8de933779480d631891efd2ac289045f2f (patch) | |
tree | 620e4e3ba1b750098973dfe9976e6d9492134770 | |
parent | c1466c52fb6b7193a5d242bab21f263d4e3ca6d7 (diff) | |
download | PeerTube-fd261a8de933779480d631891efd2ac289045f2f.tar.gz PeerTube-fd261a8de933779480d631891efd2ac289045f2f.tar.zst PeerTube-fd261a8de933779480d631891efd2ac289045f2f.zip |
Fix video view filename
-rw-r--r-- | server/initializers/database.ts | 2 | ||||
-rw-r--r-- | server/lib/job-queue/handlers/video-views.ts | 2 | ||||
-rw-r--r-- | server/lib/schedulers/remove-old-views-scheduler.ts | 2 | ||||
-rw-r--r-- | server/models/video/video-view.ts (renamed from server/models/video/video-views.ts) | 0 | ||||
-rw-r--r-- | server/models/video/video.ts | 2 |
5 files changed, 4 insertions, 4 deletions
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' | |||
25 | import { ScheduleVideoUpdateModel } from '../models/video/schedule-video-update' | 25 | import { ScheduleVideoUpdateModel } from '../models/video/schedule-video-update' |
26 | import { VideoCaptionModel } from '../models/video/video-caption' | 26 | import { VideoCaptionModel } from '../models/video/video-caption' |
27 | import { VideoImportModel } from '../models/video/video-import' | 27 | import { VideoImportModel } from '../models/video/video-import' |
28 | import { VideoViewModel } from '../models/video/video-views' | 28 | import { VideoViewModel } from '../models/video/video-view' |
29 | import { VideoChangeOwnershipModel } from '../models/video/video-change-ownership' | 29 | import { VideoChangeOwnershipModel } from '../models/video/video-change-ownership' |
30 | import { VideoRedundancyModel } from '../models/redundancy/video-redundancy' | 30 | import { VideoRedundancyModel } from '../models/redundancy/video-redundancy' |
31 | import { UserVideoHistoryModel } from '../models/account/user-video-history' | 31 | 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 @@ | |||
1 | import { Redis } from '../../redis' | 1 | import { Redis } from '../../redis' |
2 | import { logger } from '../../../helpers/logger' | 2 | import { logger } from '../../../helpers/logger' |
3 | import { VideoModel } from '../../../models/video/video' | 3 | import { VideoModel } from '../../../models/video/video' |
4 | import { VideoViewModel } from '../../../models/video/video-views' | 4 | import { VideoViewModel } from '../../../models/video/video-view' |
5 | import { isTestInstance } from '../../../helpers/core-utils' | 5 | import { isTestInstance } from '../../../helpers/core-utils' |
6 | import { federateVideoIfNeeded } from '../../activitypub/videos' | 6 | import { federateVideoIfNeeded } from '../../activitypub/videos' |
7 | 7 | ||
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' | |||
2 | import { AbstractScheduler } from './abstract-scheduler' | 2 | import { AbstractScheduler } from './abstract-scheduler' |
3 | import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants' | 3 | import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants' |
4 | import { CONFIG } from '../../initializers/config' | 4 | import { CONFIG } from '../../initializers/config' |
5 | import { VideoViewModel } from '../../models/video/video-views' | 5 | import { VideoViewModel } from '../../models/video/video-view' |
6 | 6 | ||
7 | export class RemoveOldViewsScheduler extends AbstractScheduler { | 7 | export class RemoveOldViewsScheduler extends AbstractScheduler { |
8 | 8 | ||
diff --git a/server/models/video/video-views.ts b/server/models/video/video-view.ts index 40db5effd..40db5effd 100644 --- a/server/models/video/video-views.ts +++ b/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' | |||
76 | import { VideoCaptionModel } from './video-caption' | 76 | import { VideoCaptionModel } from './video-caption' |
77 | import { VideoBlacklistModel } from './video-blacklist' | 77 | import { VideoBlacklistModel } from './video-blacklist' |
78 | import { remove } from 'fs-extra' | 78 | import { remove } from 'fs-extra' |
79 | import { VideoViewModel } from './video-views' | 79 | import { VideoViewModel } from './video-view' |
80 | import { VideoRedundancyModel } from '../redundancy/video-redundancy' | 80 | import { VideoRedundancyModel } from '../redundancy/video-redundancy' |
81 | import { | 81 | import { |
82 | videoFilesModelToFormattedJSON, | 82 | videoFilesModelToFormattedJSON, |