mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-02-12 17:22:58 +00:00
14 lines
442 B
TypeScript
14 lines
442 B
TypeScript
import { GlobalConfig } from '@n8n/config';
|
|
import Container from 'typedi';
|
|
|
|
import { License } from '@/license';
|
|
|
|
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);
|
|
return license.isExternalSecretsEnabled();
|
|
}
|