From 54141398354e6e7b94aa3065a705a1251390111c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 20 Nov 2017 09:43:39 +0100 Subject: Refractor activity pub lib/helpers --- .../lib/jobs/transcoding-job-scheduler/video-file-optimizer-handler.ts | 3 ++- .../jobs/transcoding-job-scheduler/video-file-transcoder-handler.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'server/lib/jobs/transcoding-job-scheduler') 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 6443899d3..f26110973 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 @@ -3,10 +3,11 @@ import { computeResolutionsToTranscode, logger } from '../../../helpers' import { database as db } from '../../../initializers/database' import { VideoInstance } from '../../../models' -import { sendAddVideo } from '../../activitypub/send-request' + import { JobScheduler } from '../job-scheduler' import { TranscodingJobPayload } from './transcoding-job-scheduler' import { shareVideoByServer } from '../../../helpers/activitypub' +import { sendAddVideo } from '../../activitypub/send/send-add' async function process (data: TranscodingJobPayload, jobId: number) { const video = await db.Video.loadByUUIDAndPopulateAccountAndServerAndTags(data.videoUUID) diff --git a/server/lib/jobs/transcoding-job-scheduler/video-file-transcoder-handler.ts b/server/lib/jobs/transcoding-job-scheduler/video-file-transcoder-handler.ts index 4f2ce3d24..867580200 100644 --- a/server/lib/jobs/transcoding-job-scheduler/video-file-transcoder-handler.ts +++ b/server/lib/jobs/transcoding-job-scheduler/video-file-transcoder-handler.ts @@ -2,7 +2,7 @@ import { VideoResolution } from '../../../../shared' import { logger } from '../../../helpers' import { database as db } from '../../../initializers/database' import { VideoInstance } from '../../../models' -import { sendUpdateVideo } from '../../activitypub/send-request' +import { sendUpdateVideo } from '../../activitypub/send/send-update' async function process (data: { videoUUID: string, resolution: VideoResolution }, jobId: number) { const video = await db.Video.loadByUUIDAndPopulateAccountAndServerAndTags(data.videoUUID) -- cgit v1.2.3