Refactor socket session user structure and update user ID retrieval
- Changed the user structure in ISocketSession to include an object with an 'id' property. - Updated the getLoggedInUserIdFromSocket function to return the user ID directly from the new structure.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export interface ISocketSession {
|
||||
session?: {
|
||||
passport?: { user?: string; }
|
||||
passport?: { user?: { id: string } }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user