Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmthecoder committed Mar 30, 2024
1 parent a368a42 commit 373c2c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
17 changes: 1 addition & 16 deletions packages/logging-service/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,9 @@ import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { LoggingModule } from './modules/logging/logging.module';
import { ClientsModule, Transport } from '@nestjs/microservices';
import { JUNO_LOGGING_PACKAGE_NAME } from 'juno-proto/dist/gen/logging';
import { LoggingProtoFile } from 'juno-proto';

@Module({
imports: [
LoggingModule,
ClientsModule.register([
{
name: 'LOGGING_SERVICE',
transport: Transport.GRPC,
options: {
package: JUNO_LOGGING_PACKAGE_NAME,
protoPath: [LoggingProtoFile],
},
},
]),
],
imports: [LoggingModule],
controllers: [AppController],
providers: [AppService],
})
Expand Down
6 changes: 4 additions & 2 deletions packages/logging-service/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { AppModule } from './app.module';
import { MicroserviceOptions, Transport } from '@nestjs/microservices';
import { join } from 'path';
import { ConfigModule } from '@nestjs/config';
import { LoggingProtoFile } from 'juno-proto';
import { JUNO_LOGGING_PACKAGE_NAME } from 'juno-proto/dist/gen/logging';

async function bootstrap() {
ConfigModule.forRoot({
Expand All @@ -13,8 +15,8 @@ async function bootstrap() {
{
transport: Transport.GRPC,
options: {
package: [],
protoPath: [],
package: JUNO_LOGGING_PACKAGE_NAME,
protoPath: [LoggingProtoFile],
url: process.env.LOGGING_SERVICE_ADDR,
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Controller } from '@nestjs/common';
import { LoggingService } from './logging.service';
import { LoggingProto } from 'juno-proto';
import { Observable } from 'rxjs';

@Controller()
@LoggingProto.LoggingServiceControllerMethods()
Expand Down

0 comments on commit 373c2c3

Please sign in to comment.