fix(api): use sessionId instead of cookie to close sockets

This commit is contained in:
yassinedorbozgithub
2025-01-30 16:51:59 +01:00
parent a92617db98
commit ee23ef1f3e
3 changed files with 8 additions and 16 deletions

View File

@@ -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 */