From a15871560f80e07386c1dabb8370cd2664ecfd1f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 31 Jan 2020 16:56:52 +0100 Subject: Move to eslint --- server/lib/schedulers/auto-follow-index-instances.ts | 3 +-- server/lib/schedulers/plugins-check-scheduler.ts | 2 +- server/lib/schedulers/remove-old-views-scheduler.ts | 2 -- server/lib/schedulers/videos-redundancy-scheduler.ts | 6 +++--- 4 files changed, 5 insertions(+), 8 deletions(-) (limited to 'server/lib/schedulers') diff --git a/server/lib/schedulers/auto-follow-index-instances.ts b/server/lib/schedulers/auto-follow-index-instances.ts index dd326bc1e..d700a99f0 100644 --- a/server/lib/schedulers/auto-follow-index-instances.ts +++ b/server/lib/schedulers/auto-follow-index-instances.ts @@ -57,8 +57,7 @@ export class AutoFollowIndexInstances extends AbstractScheduler { isAutoFollow: true } - await JobQueue.Instance.createJob({ type: 'activitypub-follow', payload }) - .catch(err => logger.error('Cannot create follow job for %s.', unfollowedHost, err)) + JobQueue.Instance.createJob({ type: 'activitypub-follow', payload }) } } diff --git a/server/lib/schedulers/plugins-check-scheduler.ts b/server/lib/schedulers/plugins-check-scheduler.ts index 7ff41e639..014993e94 100644 --- a/server/lib/schedulers/plugins-check-scheduler.ts +++ b/server/lib/schedulers/plugins-check-scheduler.ts @@ -43,7 +43,7 @@ export class PluginsCheckScheduler extends AbstractScheduler { const results = await getLatestPluginsVersion(npmNames) for (const result of results) { - const plugin = pluginIndex[ result.npmName ] + const plugin = pluginIndex[result.npmName] if (!result.latestVersion) continue if ( diff --git a/server/lib/schedulers/remove-old-views-scheduler.ts b/server/lib/schedulers/remove-old-views-scheduler.ts index 39fbb9163..5ae87fe50 100644 --- a/server/lib/schedulers/remove-old-views-scheduler.ts +++ b/server/lib/schedulers/remove-old-views-scheduler.ts @@ -1,9 +1,7 @@ import { logger } from '../../helpers/logger' import { AbstractScheduler } from './abstract-scheduler' import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants' -import { UserVideoHistoryModel } from '../../models/account/user-video-history' import { CONFIG } from '../../initializers/config' -import { isTestInstance } from '../../helpers/core-utils' import { VideoViewModel } from '../../models/video/video-views' export class RemoveOldViewsScheduler extends AbstractScheduler { diff --git a/server/lib/schedulers/videos-redundancy-scheduler.ts b/server/lib/schedulers/videos-redundancy-scheduler.ts index 6e61cbe7d..e33a4133a 100644 --- a/server/lib/schedulers/videos-redundancy-scheduler.ts +++ b/server/lib/schedulers/videos-redundancy-scheduler.ts @@ -28,9 +28,9 @@ import { getVideoFilename } from '../video-paths' import { VideoModel } from '@server/models/video/video' type CandidateToDuplicate = { - redundancy: VideosRedundancyStrategy, - video: MVideoWithAllFiles, - files: MVideoFile[], + redundancy: VideosRedundancyStrategy + video: MVideoWithAllFiles + files: MVideoFile[] streamingPlaylists: MStreamingPlaylistFiles[] } -- cgit v1.2.3