aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/views/shared
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/views/shared')
-rw-r--r--server/lib/views/shared/video-viewer-stats.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/lib/views/shared/video-viewer-stats.ts b/server/lib/views/shared/video-viewer-stats.ts
index fd66fd5c7..a9ba25b47 100644
--- a/server/lib/views/shared/video-viewer-stats.ts
+++ b/server/lib/views/shared/video-viewer-stats.ts
@@ -136,6 +136,7 @@ export class VideoViewerStats {
136 try { 136 try {
137 await sequelizeTypescript.transaction(async t => { 137 await sequelizeTypescript.transaction(async t => {
138 const video = await VideoModel.load(stats.videoId, t) 138 const video = await VideoModel.load(stats.videoId, t)
139 if (!video) return
139 140
140 const statsModel = await this.saveViewerStats(video, stats, t) 141 const statsModel = await this.saveViewerStats(video, stats, t)
141 142