mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
refactor(core): Decouple database entity registration (#15871)
Co-authored-by: Danny Martini <danny@n8n.io>
This commit is contained in:
@@ -63,6 +63,10 @@ if (process.env.NODEJS_PREFER_IPV4 === 'true') {
|
||||
require('net').setDefaultAutoSelectFamily?.(false);
|
||||
|
||||
(async () => {
|
||||
// Collect DB entities from modules _before_ `DbConnectionOptions` is instantiated.
|
||||
const { BaseCommand } = await import('../dist/commands/base-command.js');
|
||||
await new BaseCommand([], { root: __dirname }).loadModules();
|
||||
|
||||
const oclif = await import('@oclif/core');
|
||||
await oclif.execute({ dir: __dirname });
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user