Skip to content

Commit

Permalink
Merge pull request #222 from andrechristikan/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
andrechristikan authored Sep 20, 2022
2 parents 853b627 + 483548d commit cc47306
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ack-nestjs-mongoose-kafka",
"version": "2.1.1",
"version": "2.1.2",
"description": "Ack NestJs Mongoose Kafka",
"repository": {
"type": "git",
Expand Down
14 changes: 7 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ import {
AwsS3MultipartSerialization,
} from 'src/common/aws/serializations/aws.s3-multipart.serialization';
import { AwsS3Serialization } from 'src/common/aws/serializations/aws.s3.serialization';
import { DatabaseOptionsService } from 'src/common/database/services/database.options.service';

async function bootstrap() {
const app: NestApplication = await NestFactory.create(AppModule);
const configService = app.get(ConfigService);
const databaseOptionsService: DatabaseOptionsService = app.get(
DatabaseOptionsService
);
const databaseUri: string =
databaseOptionsService.createMongooseOptions().uri;
const appName: string = configService.get<string>('app.name');
const env: string = configService.get<string>('app.env');
const mode: string = configService.get<string>('app.mode');
Expand Down Expand Up @@ -127,13 +133,7 @@ async function bootstrap() {
logger.log(`Docs version is ${docVersion}`);

logger.log(`==========================================================`);

logger.log(
`Database running on ${configService.get<string>(
'database.host'
)}/${configService.get<string>('database.name')}`,
'NestApplication'
);
logger.log(`Database uri ${databaseUri}`, 'NestApplication');
logger.log(`Server running on ${await app.getUrl()}`, 'NestApplication');

logger.log(`==========================================================`);
Expand Down

0 comments on commit cc47306

Please sign in to comment.