aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-15 15:18:54 +0200
committerChocobozzz <me@florianbigard.com>2020-06-15 15:18:54 +0200
commitfd261a8de933779480d631891efd2ac289045f2f (patch)
tree620e4e3ba1b750098973dfe9976e6d9492134770 /server
parentc1466c52fb6b7193a5d242bab21f263d4e3ca6d7 (diff)
downloadPeerTube-fd261a8de933779480d631891efd2ac289045f2f.tar.gz
PeerTube-fd261a8de933779480d631891efd2ac289045f2f.tar.zst
PeerTube-fd261a8de933779480d631891efd2ac289045f2f.zip
Fix video view filename
Diffstat (limited to 'server')
-rw-r--r--server/initializers/database.ts2
-rw-r--r--server/lib/job-queue/handlers/video-views.ts2
-rw-r--r--server/lib/schedulers/remove-old-views-scheduler.ts2
-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.ts2
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'
25import { ScheduleVideoUpdateModel } from '../models/video/schedule-video-update' 25import { ScheduleVideoUpdateModel } from '../models/video/schedule-video-update'
26import { VideoCaptionModel } from '../models/video/video-caption' 26import { VideoCaptionModel } from '../models/video/video-caption'
27import { VideoImportModel } from '../models/video/video-import' 27import { VideoImportModel } from '../models/video/video-import'
28import { VideoViewModel } from '../models/video/video-views' 28import { VideoViewModel } from '../models/video/video-view'
29import { VideoChangeOwnershipModel } from '../models/video/video-change-ownership' 29import { VideoChangeOwnershipModel } from '../models/video/video-change-ownership'
30import { VideoRedundancyModel } from '../models/redundancy/video-redundancy' 30import { VideoRedundancyModel } from '../models/redundancy/video-redundancy'
31import { UserVideoHistoryModel } from '../models/account/user-video-history' 31import { 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 @@
1import { Redis } from '../../redis' 1import { Redis } from '../../redis'
2import { logger } from '../../../helpers/logger' 2import { logger } from '../../../helpers/logger'
3import { VideoModel } from '../../../models/video/video' 3import { VideoModel } from '../../../models/video/video'
4import { VideoViewModel } from '../../../models/video/video-views' 4import { VideoViewModel } from '../../../models/video/video-view'
5import { isTestInstance } from '../../../helpers/core-utils' 5import { isTestInstance } from '../../../helpers/core-utils'
6import { federateVideoIfNeeded } from '../../activitypub/videos' 6import { 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'
2import { AbstractScheduler } from './abstract-scheduler' 2import { AbstractScheduler } from './abstract-scheduler'
3import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants' 3import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants'
4import { CONFIG } from '../../initializers/config' 4import { CONFIG } from '../../initializers/config'
5import { VideoViewModel } from '../../models/video/video-views' 5import { VideoViewModel } from '../../models/video/video-view'
6 6
7export class RemoveOldViewsScheduler extends AbstractScheduler { 7export 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'
76import { VideoCaptionModel } from './video-caption' 76import { VideoCaptionModel } from './video-caption'
77import { VideoBlacklistModel } from './video-blacklist' 77import { VideoBlacklistModel } from './video-blacklist'
78import { remove } from 'fs-extra' 78import { remove } from 'fs-extra'
79import { VideoViewModel } from './video-views' 79import { VideoViewModel } from './video-view'
80import { VideoRedundancyModel } from '../redundancy/video-redundancy' 80import { VideoRedundancyModel } from '../redundancy/video-redundancy'
81import { 81import {
82 videoFilesModelToFormattedJSON, 82 videoFilesModelToFormattedJSON,