mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
fix(server): event handler bindings (#10165)
This commit is contained in:
@@ -87,11 +87,11 @@ export function parseCookies(
|
||||
* - `graphql`: graphql request
|
||||
* - `http`: http request
|
||||
* - `ws`: websocket request
|
||||
* - `se`: server event
|
||||
* - `event`: event
|
||||
* - `job`: cron job
|
||||
* - `rpc`: rpc request
|
||||
*/
|
||||
export type RequestType = GqlContextType | 'se' | 'job';
|
||||
export type RequestType = GqlContextType | 'event' | 'job';
|
||||
|
||||
export function genRequestId(type: RequestType) {
|
||||
return `${AFFiNE.flavor.type}:${type}/${randomUUID()}`;
|
||||
|
||||
Reference in New Issue
Block a user