mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-25 06:01:02 +10:00
cleanups
This commit is contained in:
@ -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({
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user