Skip to content

Commit

Permalink
failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHub committed Dec 31, 2024
1 parent 0c89163 commit c28bc71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/controllers/utils/entity-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {CollectionNames, SocketEventTypes} from '../../models/common';
import {ConfacRequest} from '../../models/technical';

export function emitEntityEvent(req: ConfacRequest, eventType: SocketEventTypes, entityType: CollectionNames, entityId: ObjectID | null, entity: any|null) {
const sourceSocketId = req.headers['x-socket-id'];
const sourceSocketId = req.headers ? req.headers['x-socket-id'] : null;
const sourceUserEmail = req.user?.data?.email;
req.io.emit(eventType, {
entityType,
Expand Down

0 comments on commit c28bc71

Please sign in to comment.