aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/job-queue
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-02 09:35:01 +0200
committerChocobozzz <me@florianbigard.com>2021-06-02 16:57:53 +0200
commit69290ab37b8aead01477b9b98fdfad0e69b08582 (patch)
tree4b93d349dfce5014925e7f060b3b158ac9b3bbc2 /server/lib/job-queue
parent81628e5069e0168b11857f276fe8e03b93102dde (diff)
downloadPeerTube-69290ab37b8aead01477b9b98fdfad0e69b08582.tar.gz
PeerTube-69290ab37b8aead01477b9b98fdfad0e69b08582.tar.zst
PeerTube-69290ab37b8aead01477b9b98fdfad0e69b08582.zip
Refactor AP video update
Diffstat (limited to 'server/lib/job-queue')
-rw-r--r--server/lib/job-queue/handlers/activitypub-refresher.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/job-queue/handlers/activitypub-refresher.ts b/server/lib/job-queue/handlers/activitypub-refresher.ts
index c09b1bcc8..a120e4ea8 100644
--- a/server/lib/job-queue/handlers/activitypub-refresher.ts
+++ b/server/lib/job-queue/handlers/activitypub-refresher.ts
@@ -1,12 +1,12 @@
1import * as Bull from 'bull' 1import * as Bull from 'bull'
2import { refreshVideoPlaylistIfNeeded } from '@server/lib/activitypub/playlist' 2import { refreshVideoPlaylistIfNeeded } from '@server/lib/activitypub/playlist'
3import { refreshVideoIfNeeded } from '@server/lib/activitypub/videos'
3import { RefreshPayload } from '@shared/models' 4import { RefreshPayload } from '@shared/models'
4import { logger } from '../../../helpers/logger' 5import { logger } from '../../../helpers/logger'
5import { fetchVideoByUrl } from '../../../helpers/video' 6import { fetchVideoByUrl } from '../../../helpers/video'
6import { ActorModel } from '../../../models/actor/actor' 7import { ActorModel } from '../../../models/actor/actor'
7import { VideoPlaylistModel } from '../../../models/video/video-playlist' 8import { VideoPlaylistModel } from '../../../models/video/video-playlist'
8import { refreshActorIfNeeded } from '../../activitypub/actor' 9import { refreshActorIfNeeded } from '../../activitypub/actor'
9import { refreshVideoIfNeeded } from '../../activitypub/videos'
10 10
11async function refreshAPObject (job: Bull.Job) { 11async function refreshAPObject (job: Bull.Job) {
12 const payload = job.data as RefreshPayload 12 const payload = job.data as RefreshPayload