aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/views/shared/video-viewer-stats.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-05-18 12:01:02 +0200
committerChocobozzz <me@florianbigard.com>2022-05-18 12:01:02 +0200
commit941d28cc7f9877aa2cfcee018413e0f04f0a9048 (patch)
tree59f889a5a782713aa2060f4beffc6b0cfd671b96 /server/lib/views/shared/video-viewer-stats.ts
parentefa236c6c674835c3f64731d2ba6ad0e82a79e27 (diff)
downloadPeerTube-941d28cc7f9877aa2cfcee018413e0f04f0a9048.tar.gz
PeerTube-941d28cc7f9877aa2cfcee018413e0f04f0a9048.tar.zst
PeerTube-941d28cc7f9877aa2cfcee018413e0f04f0a9048.zip
Reduce error logs
Diffstat (limited to 'server/lib/views/shared/video-viewer-stats.ts')
-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