mirror of
				https://github.com/lingble/twenty.git
				synced 2025-10-31 20:57:55 +00:00 
			
		
		
		
	Cleanup default values and leftover methods in environmentService (#4550)
* Cleanup default values and leftover methods in environmentService * Adress remainings configService calls
This commit is contained in:
		| @@ -2,16 +2,16 @@ import { ConfigService } from '@nestjs/config'; | ||||
|  | ||||
| import console from 'console'; | ||||
|  | ||||
| import { config } from 'dotenv'; | ||||
| import { DataSource } from 'typeorm'; | ||||
|  | ||||
| config(); | ||||
| const configService = new ConfigService(); | ||||
| 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: configService.get<string>('PG_DATABASE_URL'), | ||||
|   url: environmentService.get('PG_DATABASE_URL'), | ||||
| }); | ||||
|  | ||||
| export const camelToSnakeCase = (str) => | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Félix Malfait
					Félix Malfait