diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-15 17:34:38 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-19 10:53:16 +0100 |
commit | a7d647c4403f8774106f485e8d9323158454e111 (patch) | |
tree | fcba0e03ce3ac2bf1cc7607a1643ffd1bc206c2b /server/lib/jobs | |
parent | 50d6de9c286abcb34ff4234d56d9cbb803db7665 (diff) | |
download | PeerTube-a7d647c4403f8774106f485e8d9323158454e111.tar.gz PeerTube-a7d647c4403f8774106f485e8d9323158454e111.tar.zst PeerTube-a7d647c4403f8774106f485e8d9323158454e111.zip |
Add dirty migration :/
Diffstat (limited to 'server/lib/jobs')
-rw-r--r-- | server/lib/jobs/transcoding-job-scheduler/video-file-optimizer-handler.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/jobs/transcoding-job-scheduler/video-file-optimizer-handler.ts b/server/lib/jobs/transcoding-job-scheduler/video-file-optimizer-handler.ts index 7df048006..cde4948de 100644 --- a/server/lib/jobs/transcoding-job-scheduler/video-file-optimizer-handler.ts +++ b/server/lib/jobs/transcoding-job-scheduler/video-file-optimizer-handler.ts | |||
@@ -2,7 +2,7 @@ import * as Bluebird from 'bluebird' | |||
2 | import { computeResolutionsToTranscode, logger } from '../../../helpers' | 2 | import { computeResolutionsToTranscode, logger } from '../../../helpers' |
3 | import { sequelizeTypescript } from '../../../initializers' | 3 | import { sequelizeTypescript } from '../../../initializers' |
4 | import { VideoModel } from '../../../models/video/video' | 4 | import { VideoModel } from '../../../models/video/video' |
5 | import { shareVideoByServer } from '../../activitypub' | 5 | import { shareVideoByServerAndChannel } from '../../activitypub' |
6 | import { sendCreateVideo } from '../../activitypub/send' | 6 | import { sendCreateVideo } from '../../activitypub/send' |
7 | import { JobScheduler } from '../job-scheduler' | 7 | import { JobScheduler } from '../job-scheduler' |
8 | import { TranscodingJobPayload } from './transcoding-job-scheduler' | 8 | import { TranscodingJobPayload } from './transcoding-job-scheduler' |
@@ -38,7 +38,7 @@ async function onSuccess (jobId: number, video: VideoModel, jobScheduler: JobSch | |||
38 | // Now we'll add the video's meta data to our followers | 38 | // Now we'll add the video's meta data to our followers |
39 | await sendCreateVideo(video, undefined) | 39 | await sendCreateVideo(video, undefined) |
40 | // TODO: share by channel | 40 | // TODO: share by channel |
41 | await shareVideoByServer(video, undefined) | 41 | await shareVideoByServerAndChannel(video, undefined) |
42 | 42 | ||
43 | const originalFileHeight = await videoDatabase.getOriginalFileHeight() | 43 | const originalFileHeight = await videoDatabase.getOriginalFileHeight() |
44 | 44 | ||