Skip to content

Commit

Permalink
Fix bugs platform module (#103)
Browse files Browse the repository at this point in the history
* feat: support afj-0.4.1

Signed-off-by: KulkarniShashank <[email protected]>

* fix: Add nats configuration in platform

Signed-off-by: KulkarniShashank <[email protected]>

---------

Signed-off-by: KulkarniShashank <[email protected]>
  • Loading branch information
KulkarniShashank committed Sep 11, 2024
1 parent 4fd0a4a commit 636b351
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/api-gateway/src/platform/platform.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ import { PlatformController } from './platform.controller';
import { PlatformService } from './platform.service';
import { ClientsModule, Transport } from '@nestjs/microservices';
import { ConfigModule } from '@nestjs/config';
import { commonNatsOptions } from 'libs/service/nats.options';

@Module({
imports: [
ConfigModule.forRoot(),
ClientsModule.register([
{
name: 'NATS_CLIENT',
...commonNatsOptions('AGENT_SERVICE:REQUESTER')
transport: Transport.NATS,
options: {
servers: [`${process.env.NATS_URL}`]
}
}
])

],
controllers: [PlatformController],
providers: [PlatformService]
Expand Down

0 comments on commit 636b351

Please sign in to comment.