export async function synchronizeChannel (options: {
channel: MChannelAccountDefault
externalChannelUrl: string
+ videosCountLimit: number
channelSync?: MChannelSync
- videosCountLimit?: number
onlyAfter?: Date
}) {
const { channel, externalChannelUrl, videosCountLimit, onlyAfter, channelSync } = options
await JobQueue.Instance.createJobWithChildren(parent, children)
} catch (err) {
- logger.error(`Failed to import channel ${channel.name}`, { err })
+ logger.error(`Failed to import ${externalChannelUrl} in channel ${channel.name}`, { err })
channelSync.state = VideoChannelSyncState.FAILED
await channelSync.save()
}