Skip to content

Commit

Permalink
fix: Validation fails in RPC context for MqttContext nestjs#13350
Browse files Browse the repository at this point in the history
  • Loading branch information
rbnayax committed Mar 21, 2024
1 parent df37ea1 commit ca176ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions packages/microservices/enums/rpc-paramtype.enum.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {RouteParamtypes} from "@nestjs/common/enums/route-paramtypes.enum";

export enum RpcParamtype {
PAYLOAD = 3,
CONTEXT = 6,
GRPC_CALL = 9,
PAYLOAD = RouteParamtypes.BODY,
CONTEXT = RouteParamtypes.HEADERS,
GRPC_CALL = RouteParamtypes.FILES,
}
6 changes: 4 additions & 2 deletions packages/websockets/enums/ws-paramtype.enum.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import {RouteParamtypes} from "@nestjs/common/enums/route-paramtypes.enum";

export enum WsParamtype {
SOCKET = 0,
PAYLOAD = 3,
SOCKET = RouteParamtypes.REQUEST,
PAYLOAD = RouteParamtypes.BODY,
}

0 comments on commit ca176ac

Please sign in to comment.