mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-08-29 14:50:36 +02:00
refactor(core): Port workflow history config (#14689)
This commit is contained in:
@@ -320,7 +320,7 @@ export class FrontendService {
|
||||
debugInEditor: this.license.isDebugInEditorLicensed(),
|
||||
binaryDataS3: isS3Available && isS3Selected && isS3Licensed,
|
||||
workflowHistory:
|
||||
this.license.isWorkflowHistoryLicensed() && config.getEnv('workflowHistory.enabled'),
|
||||
this.license.isWorkflowHistoryLicensed() && this.globalConfig.workflowHistory.enabled,
|
||||
workerView: this.license.isWorkerViewLicensed(),
|
||||
advancedPermissions: this.license.isAdvancedPermissionsLicensed(),
|
||||
apiKeyScopes: this.license.isApiKeyScopesEnabled(),
|
||||
@@ -344,7 +344,7 @@ export class FrontendService {
|
||||
this.settings.variables.limit = this.license.getVariablesLimit();
|
||||
}
|
||||
|
||||
if (this.license.isWorkflowHistoryLicensed() && config.getEnv('workflowHistory.enabled')) {
|
||||
if (this.globalConfig.workflowHistory.enabled && this.license.isWorkflowHistoryLicensed()) {
|
||||
Object.assign(this.settings.workflowHistory, {
|
||||
pruneTime: getWorkflowHistoryPruneTime(),
|
||||
licensePruneTime: getWorkflowHistoryLicensePruneTime(),
|
||||
|
||||
Reference in New Issue
Block a user