Skip to content

Commit ca176ac

Browse files
committed
fix: Validation fails in RPC context for MqttContext #13350
1 parent df37ea1 commit ca176ac

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import {RouteParamtypes} from "@nestjs/common/enums/route-paramtypes.enum";
2+
13
export enum RpcParamtype {
2-
PAYLOAD = 3,
3-
CONTEXT = 6,
4-
GRPC_CALL = 9,
4+
PAYLOAD = RouteParamtypes.BODY,
5+
CONTEXT = RouteParamtypes.HEADERS,
6+
GRPC_CALL = RouteParamtypes.FILES,
57
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import {RouteParamtypes} from "@nestjs/common/enums/route-paramtypes.enum";
2+
13
export enum WsParamtype {
2-
SOCKET = 0,
3-
PAYLOAD = 3,
4+
SOCKET = RouteParamtypes.REQUEST,
5+
PAYLOAD = RouteParamtypes.BODY,
46
}

0 commit comments

Comments
 (0)