diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-18 12:01:02 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-18 12:01:02 +0200 |
commit | 941d28cc7f9877aa2cfcee018413e0f04f0a9048 (patch) | |
tree | 59f889a5a782713aa2060f4beffc6b0cfd671b96 /server/lib/views/shared | |
parent | efa236c6c674835c3f64731d2ba6ad0e82a79e27 (diff) | |
download | PeerTube-941d28cc7f9877aa2cfcee018413e0f04f0a9048.tar.gz PeerTube-941d28cc7f9877aa2cfcee018413e0f04f0a9048.tar.zst PeerTube-941d28cc7f9877aa2cfcee018413e0f04f0a9048.zip |
Reduce error logs
Diffstat (limited to 'server/lib/views/shared')
-rw-r--r-- | server/lib/views/shared/video-viewer-stats.ts | 1 |
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 | ||