aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/schedulers/video-channel-sync-latest-scheduler.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-10 11:51:13 +0200
committerChocobozzz <me@florianbigard.com>2022-08-10 14:32:00 +0200
commita3b472a12ec6e57dbe2f650419f8064864686eab (patch)
treef36559488e34493c029b686772e986902150a647 /server/lib/schedulers/video-channel-sync-latest-scheduler.ts
parent0567049a9819d67070aa6d548a75a7e632a4aaa4 (diff)
downloadPeerTube-a3b472a12ec6e57dbe2f650419f8064864686eab.tar.gz
PeerTube-a3b472a12ec6e57dbe2f650419f8064864686eab.tar.zst
PeerTube-a3b472a12ec6e57dbe2f650419f8064864686eab.zip
Add ability to list imports of a channel sync
Diffstat (limited to 'server/lib/schedulers/video-channel-sync-latest-scheduler.ts')
-rw-r--r--server/lib/schedulers/video-channel-sync-latest-scheduler.ts4
1 files changed, 0 insertions, 4 deletions
diff --git a/server/lib/schedulers/video-channel-sync-latest-scheduler.ts b/server/lib/schedulers/video-channel-sync-latest-scheduler.ts
index fd9a35299..491ddaa87 100644
--- a/server/lib/schedulers/video-channel-sync-latest-scheduler.ts
+++ b/server/lib/schedulers/video-channel-sync-latest-scheduler.ts
@@ -36,10 +36,6 @@ export class VideoChannelSyncLatestScheduler extends AbstractScheduler {
36 36
37 const onlyAfter = sync.lastSyncAt || sync.createdAt 37 const onlyAfter = sync.lastSyncAt || sync.createdAt
38 38
39 sync.state = VideoChannelSyncState.PROCESSING
40 sync.lastSyncAt = new Date()
41 await sync.save()
42
43 await synchronizeChannel({ 39 await synchronizeChannel({
44 channel, 40 channel,
45 externalChannelUrl: sync.externalChannelUrl, 41 externalChannelUrl: sync.externalChannelUrl,