aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/activitypub/send/send-update.ts2
-rw-r--r--server/lib/activitypub/videos.ts2
-rw-r--r--server/lib/video-transcoding.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/activitypub/send/send-update.ts b/server/lib/activitypub/send/send-update.ts
index cb14b8dbf..9c76671b5 100644
--- a/server/lib/activitypub/send/send-update.ts
+++ b/server/lib/activitypub/send/send-update.ts
@@ -35,7 +35,7 @@ async function sendUpdateVideo (videoArg: MVideoAPWithoutCaption, t: Transaction
35 35
36 // Needed to build the AP object 36 // Needed to build the AP object
37 if (!video.VideoCaptions) { 37 if (!video.VideoCaptions) {
38 video.VideoCaptions = await video.$get('VideoCaptions', { transaction: t }) as VideoCaptionModel[] 38 video.VideoCaptions = await video.$get('VideoCaptions', { transaction: t })
39 } 39 }
40 40
41 const videoObject = video.toActivityPubObject() 41 const videoObject = video.toActivityPubObject()
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts
index 2fb1f8d49..ade93150f 100644
--- a/server/lib/activitypub/videos.ts
+++ b/server/lib/activitypub/videos.ts
@@ -86,7 +86,7 @@ async function federateVideoIfNeeded (videoArg: MVideoAPWithoutCaption, isNewVid
86 video.VideoCaptions = await video.$get('VideoCaptions', { 86 video.VideoCaptions = await video.$get('VideoCaptions', {
87 attributes: [ 'language' ], 87 attributes: [ 'language' ],
88 transaction 88 transaction
89 }) as VideoCaptionModel[] 89 })
90 } 90 }
91 91
92 if (isNewVideo) { 92 if (isNewVideo) {
diff --git a/server/lib/video-transcoding.ts b/server/lib/video-transcoding.ts
index 4fd1d62a9..0d5b3ae39 100644
--- a/server/lib/video-transcoding.ts
+++ b/server/lib/video-transcoding.ts
@@ -206,7 +206,7 @@ async function generateHlsPlaylist (video: MVideoWithFile, resolution: VideoReso
206 await createTorrentAndSetInfoHash(videoStreamingPlaylist, newVideoFile) 206 await createTorrentAndSetInfoHash(videoStreamingPlaylist, newVideoFile)
207 207
208 await newVideoFile.save() 208 await newVideoFile.save()
209 videoStreamingPlaylist.VideoFiles = await videoStreamingPlaylist.$get('VideoFiles') as VideoFileModel[] 209 videoStreamingPlaylist.VideoFiles = await videoStreamingPlaylist.$get('VideoFiles')
210 210
211 video.setHLSPlaylist(videoStreamingPlaylist) 211 video.setHLSPlaylist(videoStreamingPlaylist)
212 212