diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-13 11:58:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-13 12:14:26 +0200 |
commit | ba2684ceddf9b76312635b9cddc6bf6975ce436a (patch) | |
tree | d7c9618b9a6f632029d809d8bf342adc26c85cc8 /server/lib/video.ts | |
parent | e45dd87b93c621c606415f9e8d0d381de6d7a2d7 (diff) | |
download | PeerTube-ba2684ceddf9b76312635b9cddc6bf6975ce436a.tar.gz PeerTube-ba2684ceddf9b76312635b9cddc6bf6975ce436a.tar.zst PeerTube-ba2684ceddf9b76312635b9cddc6bf6975ce436a.zip |
Fix lint
Diffstat (limited to 'server/lib/video.ts')
-rw-r--r-- | server/lib/video.ts | 4 |
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: { | |||
122 | async function addTranscodingJob (payload: VideoTranscodingPayload, options: CreateJobOptions = {}) { | 122 | async 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 | ||
128 | async function getTranscodingJobPriority (user: MUserId) { | 128 | async function getTranscodingJobPriority (user: MUserId) { |