diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-02 09:35:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-02 16:57:53 +0200 |
commit | 69290ab37b8aead01477b9b98fdfad0e69b08582 (patch) | |
tree | 4b93d349dfce5014925e7f060b3b158ac9b3bbc2 /server/lib/job-queue | |
parent | 81628e5069e0168b11857f276fe8e03b93102dde (diff) | |
download | PeerTube-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.ts | 2 |
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 @@ | |||
1 | import * as Bull from 'bull' | 1 | import * as Bull from 'bull' |
2 | import { refreshVideoPlaylistIfNeeded } from '@server/lib/activitypub/playlist' | 2 | import { refreshVideoPlaylistIfNeeded } from '@server/lib/activitypub/playlist' |
3 | import { refreshVideoIfNeeded } from '@server/lib/activitypub/videos' | ||
3 | import { RefreshPayload } from '@shared/models' | 4 | import { RefreshPayload } from '@shared/models' |
4 | import { logger } from '../../../helpers/logger' | 5 | import { logger } from '../../../helpers/logger' |
5 | import { fetchVideoByUrl } from '../../../helpers/video' | 6 | import { fetchVideoByUrl } from '../../../helpers/video' |
6 | import { ActorModel } from '../../../models/actor/actor' | 7 | import { ActorModel } from '../../../models/actor/actor' |
7 | import { VideoPlaylistModel } from '../../../models/video/video-playlist' | 8 | import { VideoPlaylistModel } from '../../../models/video/video-playlist' |
8 | import { refreshActorIfNeeded } from '../../activitypub/actor' | 9 | import { refreshActorIfNeeded } from '../../activitypub/actor' |
9 | import { refreshVideoIfNeeded } from '../../activitypub/videos' | ||
10 | 10 | ||
11 | async function refreshAPObject (job: Bull.Job) { | 11 | async function refreshAPObject (job: Bull.Job) { |
12 | const payload = job.data as RefreshPayload | 12 | const payload = job.data as RefreshPayload |