mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
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) {
|
||||
const type = host.getType<GqlContextType>();
|
||||
if (type === 'ws') {
|
||||
return genRequestId(type);
|
||||
}
|
||||
const req = getRequestFromHost(host);
|
||||
return getRequestIdFromRequest(req, type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user