aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/video.ts')
-rw-r--r--server/lib/video.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/video.ts b/server/lib/video.ts
index 86718abbe..b843b11bc 100644
--- a/server/lib/video.ts
+++ b/server/lib/video.ts
@@ -26,7 +26,7 @@ function buildLocalVideoFromReq (videoInfo: VideoCreate, channelId: number): Fil
26 description: videoInfo.description, 26 description: videoInfo.description,
27 support: videoInfo.support, 27 support: videoInfo.support,
28 privacy: videoInfo.privacy || VideoPrivacy.PRIVATE, 28 privacy: videoInfo.privacy || VideoPrivacy.PRIVATE,
29 channelId: channelId, 29 channelId,
30 originallyPublishedAt: videoInfo.originallyPublishedAt 30 originallyPublishedAt: videoInfo.originallyPublishedAt
31 ? new Date(videoInfo.originallyPublishedAt) 31 ? new Date(videoInfo.originallyPublishedAt)
32 : null 32 : null
@@ -122,7 +122,7 @@ async function addOptimizeOrMergeAudioJob (options: {
122async function addTranscodingJob (payload: VideoTranscodingPayload, options: CreateJobOptions = {}) { 122async function addTranscodingJob (payload: VideoTranscodingPayload, options: CreateJobOptions = {}) {
123 await VideoJobInfoModel.increaseOrCreate(payload.videoUUID, 'pendingTranscode') 123 await VideoJobInfoModel.increaseOrCreate(payload.videoUUID, 'pendingTranscode')
124 124
125 return JobQueue.Instance.createJobWithPromise({ type: 'video-transcoding', payload: payload }, options) 125 return JobQueue.Instance.createJobWithPromise({ type: 'video-transcoding', payload }, options)
126} 126}
127 127
128async function getTranscodingJobPriority (user: MUserId) { 128async function getTranscodingJobPriority (user: MUserId) {