fix(microservices): add missing get pattern to rmq and tcp

This commit is contained in:
Kamil Myśliwiec
2019-12-05 14:13:50 +01:00
parent 371bec639a
commit 5633df4e2b
6 changed files with 31 additions and 7 deletions

View File

@@ -110,7 +110,7 @@ export class ServerRMQ extends Server implements CustomTransportStrategy {
? packet.pattern
: JSON.stringify(packet.pattern);
const rmqContext = new RmqContext([message, channel]);
const rmqContext = new RmqContext([message, channel, pattern]);
if (isUndefined((packet as IncomingRequest).id)) {
return this.handleEvent(pattern, packet, rmqContext);
}