File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/app/homepage/pages/microservices/custom-transport Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export class RabbitMQServer extends Server implements CustomTransportStrategy {
67
67
get rabbitMqServerJs ( ) {
68
68
return `
69
69
import * as amqp from 'amqplib';
70
- import { Server } from '@nestjs/microservices';
70
+ import { Server, CustomStrategy } from '@nestjs/microservices';
71
71
import { Observable } from 'rxjs';
72
72
73
73
export class RabbitMQServer extends Server {
@@ -123,7 +123,7 @@ export class RabbitMQServer extends Server {
123
123
124
124
get setupServer ( ) {
125
125
return `
126
- const app = await NestFactory.createMicroservice(ApplicationModule, {
126
+ const app = await NestFactory.createMicroservice<CustomStrategy> (ApplicationModule, {
127
127
strategy: new RabbitMQServer('amqp://localhost', 'channel'),
128
128
});` ;
129
129
}
You can’t perform that action at this time.
0 commit comments