mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): use sessionId instead of cookie to close sockets
This commit is contained in:
3
api/types/event-emitter.d.ts
vendored
3
api/types/event-emitter.d.ts
vendored
@@ -6,6 +6,7 @@
|
||||
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
|
||||
*/
|
||||
|
||||
import { type Session as ExpressSession } from 'express-session';
|
||||
import type { Document, Query } from 'mongoose';
|
||||
import { type Socket } from 'socket.io';
|
||||
|
||||
@@ -162,7 +163,7 @@ declare module '@nestjs/event-emitter' {
|
||||
model: TDefinition<Model>;
|
||||
permission: TDefinition<Permission>;
|
||||
role: TDefinition<Role>;
|
||||
user: TDefinition<User, { lastvisit: Subscriber; logout: string }>;
|
||||
user: TDefinition<User, { lastvisit: Subscriber; logout: ExpressSession }>;
|
||||
}
|
||||
|
||||
/* entities hooks having schemas */
|
||||
|
||||
Reference in New Issue
Block a user