refactor(core): Remove deprecated TIME constant (#11740)

This commit is contained in:
Iván Ovejero
2024-11-15 10:28:21 +01:00
committed by GitHub
parent fb123b44af
commit f4f0b5110c
6 changed files with 12 additions and 28 deletions

View File

@@ -3,7 +3,7 @@ import { InstanceSettings } from 'n8n-core';
import { Service } from 'typedi';
import config from '@/config';
import { TIME } from '@/constants';
import { Time } from '@/constants';
import { Logger } from '@/logging/logger.service';
import { Publisher } from '@/scaling/pubsub/publisher.service';
import { RedisClientService } from '@/services/redis-client.service';
@@ -54,7 +54,7 @@ export class MultiMainSetup extends TypedEmitter<MultiMainEvents> {
this.leaderCheckInterval = setInterval(async () => {
await this.checkLeader();
}, this.globalConfig.multiMainSetup.interval * TIME.SECOND);
}, this.globalConfig.multiMainSetup.interval * Time.seconds.toMilliseconds);
}
async shutdown() {