diff --git a/src/utils/VideoRelevanceManager.ts b/src/utils/VideoRelevanceManager.ts index 626ceaf37..a28e72bd4 100644 --- a/src/utils/VideoRelevanceManager.ts +++ b/src/utils/VideoRelevanceManager.ts @@ -48,7 +48,9 @@ export class VideoRelevanceManager { } scheduleRecalcForChannel(id: string | null | undefined) { - id && this.channelsToUpdate.add(id) + if (id) { + this.channelsToUpdate.add(id) + } } async updateVideoRelevanceValue(em: EntityManager, forceUpdateAll?: boolean) {