This commit is contained in:
Philipinho
2024-05-02 16:45:05 +01:00
parent beb6aa8d18
commit 19a1f5e12d
7 changed files with 67 additions and 67 deletions

View File

@ -2,7 +2,7 @@ import { Global, Module } from '@nestjs/common';
import { EnvironmentService } from './environment.service';
import { ConfigModule } from '@nestjs/config';
import { validate } from './environment.validation';
import { envPath } from '../../helpers/utils';
import { envPath } from '../../helpers';
@Global()
@Module({

View File

@ -9,8 +9,8 @@ export class EnvironmentService {
return this.configService.get<string>('NODE_ENV');
}
getPort(): string {
return this.configService.get<string>('PORT');
getPort(): number {
return parseInt(this.configService.get<string>('PORT'));
}
getDatabaseURL(): string {
return this.configService.get<string>('DATABASE_URL');
@ -80,7 +80,7 @@ export class EnvironmentService {
}
getMailPort(): number {
return this.configService.get<number>('MAIL_PORT');
return parseInt(this.configService.get<string>('MAIL_PORT'));
}
getMailUsername(): string {