mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(core): Use relative imports for dynamic imports in SecurityAuditService (#8086)
`tsc-alias` doesn't seem to replace imports when using template strings ## Related tickets and issues #8085 ## Review / Merge checklist - [x] PR title and summary are descriptive.
This commit is contained in:
committed by
GitHub
parent
d44602913f
commit
785bf9974e
@@ -52,7 +52,7 @@ export class SecurityAuditService {
|
||||
const className = category.charAt(0).toUpperCase() + category.slice(1) + 'RiskReporter';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
const RiskReporterModule = await import(`@/security-audit/risk-reporters/${className}`);
|
||||
const RiskReporterModule = await import(`./risk-reporters/${className}`);
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
const RiskReporterClass = RiskReporterModule[className] as { new (): RiskReporter };
|
||||
|
||||
Reference in New Issue
Block a user