From d396ad2f413e3e52b5793128a06073d401b7fe53 Mon Sep 17 00:00:00 2001 From: gparant Date: Sun, 26 Apr 2020 22:35:16 +0200 Subject: [PATCH] Fix CI CD --- back/src/Controller/IoSocketController.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/back/src/Controller/IoSocketController.ts b/back/src/Controller/IoSocketController.ts index 42906851..b9d00ce7 100644 --- a/back/src/Controller/IoSocketController.ts +++ b/back/src/Controller/IoSocketController.ts @@ -7,7 +7,6 @@ import Jwt, {JsonWebTokenError} from "jsonwebtoken"; import {SECRET_KEY} from "../Enum/EnvironmentVariable"; //TODO fix import by "_Enum/..." import {ExtRooms, RefreshUserPositionFunction} from "../Model/Websocket/ExtRoom"; import {ExtRoomsInterface} from "_Model/Websocket/ExtRoomsInterface"; -import {ExtWebSocket} from "../../../../publicis/sources/api/src/Entities/WebSocket/ExtWebSocket"; export class IoSocketController{ Io: socketIO.Server; @@ -92,9 +91,9 @@ export class IoSocketController{ //send start at one client to initialise offer webrtc //send all users in room to create PeerConnection in front - clients.forEach((client: ExtWebSocket, index : number) => { + clients.forEach((client: ExSocketInterface, index : number) => { - let clientsId = clients.reduce((tabs : Array, clientId: ExtWebSocket, indexClientId: number) => { + let clientsId = clients.reduce((tabs : Array, clientId: ExSocketInterface, indexClientId: number) => { if(!clientId.userId || clientId.userId === client.userId){ return tabs; } @@ -115,7 +114,7 @@ export class IoSocketController{ //send only at user let clients: Array = Object.values(this.Io.sockets.sockets); for(let i = 0; i < clients.length; i++){ - let client : ExtWebSocket = clients[i]; + let client : ExSocketInterface = clients[i]; if(client.userId !== data.receiverId){ continue }