refactor(core): Port external secrets config (no-changelog) (#10094)
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { License } from '@/License';
|
||||
import config from '@/config';
|
||||
import { GlobalConfig } from '@n8n/config';
|
||||
import Container from 'typedi';
|
||||
|
||||
export const updateIntervalTime = () => config.getEnv('externalSecrets.updateInterval') * 1000;
|
||||
export const preferGet = () => config.getEnv('externalSecrets.preferGet');
|
||||
export const updateIntervalTime = () =>
|
||||
Container.get(GlobalConfig).externalSecrets.updateInterval * 1000;
|
||||
export const preferGet = () => Container.get(GlobalConfig).externalSecrets.preferGet;
|
||||
|
||||
export function isExternalSecretsEnabled() {
|
||||
const license = Container.get(License);
|
||||
|
||||
Reference in New Issue
Block a user