mirror of
https://github.com/lingble/twenty.git
synced 2025-10-30 20:27:55 +00:00
@@ -1,17 +1,11 @@
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
|
||||
import console from 'console';
|
||||
|
||||
import { DataSource } from 'typeorm';
|
||||
|
||||
import { EnvironmentService } from 'src/engine/integrations/environment/environment.service';
|
||||
|
||||
const environmentService = new EnvironmentService(new ConfigService());
|
||||
|
||||
export const connectionSource = new DataSource({
|
||||
type: 'postgres',
|
||||
logging: false,
|
||||
url: environmentService.get('PG_DATABASE_URL'),
|
||||
url: process.env.PG_DATABASE_URL,
|
||||
});
|
||||
|
||||
export const camelToSnakeCase = (str) =>
|
||||
|
||||
Reference in New Issue
Block a user