mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
perf(core): Shorten bootup for all instance types (#15856)
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -24,4 +24,5 @@ CHANGELOG-*.md
|
|||||||
build-storybook.log
|
build-storybook.log
|
||||||
*.junit.xml
|
*.junit.xml
|
||||||
junit.xml
|
junit.xml
|
||||||
test-results.json
|
test-results.json
|
||||||
|
*.0x
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import { Flags } from '@oclif/core';
|
|||||||
import { UserError } from 'n8n-workflow';
|
import { UserError } from 'n8n-workflow';
|
||||||
|
|
||||||
import { RISK_CATEGORIES } from '@/security-audit/constants';
|
import { RISK_CATEGORIES } from '@/security-audit/constants';
|
||||||
import { SecurityAuditService } from '@/security-audit/security-audit.service';
|
|
||||||
import type { Risk } from '@/security-audit/types';
|
import type { Risk } from '@/security-audit/types';
|
||||||
|
|
||||||
import { BaseCommand } from './base-command';
|
import { BaseCommand } from './base-command';
|
||||||
@@ -51,6 +50,8 @@ export class SecurityAudit extends BaseCommand {
|
|||||||
throw new UserError([message, hint].join('. '));
|
throw new UserError([message, hint].join('. '));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const { SecurityAuditService } = await import('@/security-audit/security-audit.service');
|
||||||
|
|
||||||
const result = await Container.get(SecurityAuditService).run(
|
const result = await Container.get(SecurityAuditService).run(
|
||||||
categories,
|
categories,
|
||||||
auditFlags['days-abandoned-workflow'],
|
auditFlags['days-abandoned-workflow'],
|
||||||
|
|||||||
Reference in New Issue
Block a user