mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 12:19:09 +00:00
✨ Use convict for configuration to make n8n easier to configure
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
||||
getRepository,
|
||||
} from "typeorm";
|
||||
|
||||
import * as config from 'config';
|
||||
import * as config from './../config';
|
||||
|
||||
|
||||
import {
|
||||
@@ -40,7 +40,7 @@ export async function init(): Promise<IDatabaseCollections> {
|
||||
entities = MongoDb;
|
||||
connectionOptions = {
|
||||
type: 'mongodb',
|
||||
url: config.get('database.mongodbConfig.url') as string,
|
||||
url: config.get('database.mongodb.connectionUrl') as string,
|
||||
useNewUrlParser: true,
|
||||
};
|
||||
} else if (dbType === 'sqlite') {
|
||||
|
||||
Reference in New Issue
Block a user