fix(server): gen new request id on websocket event request (#10330)
After 
This commit is contained in:
@@ -112,6 +112,9 @@ export function getRequestIdFromRequest(req: Request, type: RequestType) {
|
|||||||
|
|
||||||
export function getRequestIdFromHost(host: ArgumentsHost) {
|
export function getRequestIdFromHost(host: ArgumentsHost) {
|
||||||
const type = host.getType<GqlContextType>();
|
const type = host.getType<GqlContextType>();
|
||||||
|
if (type === 'ws') {
|
||||||
|
return genRequestId(type);
|
||||||
|
}
|
||||||
const req = getRequestFromHost(host);
|
const req = getRequestFromHost(host);
|
||||||
return getRequestIdFromRequest(req, type);
|
return getRequestIdFromRequest(req, type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user