diff --git a/src/socket/socket.gateway.ts b/src/socket/socket.gateway.ts index e2f6725..d0a8297 100644 --- a/src/socket/socket.gateway.ts +++ b/src/socket/socket.gateway.ts @@ -72,7 +72,7 @@ export class SocketGateway )}`, ); to = getUuidByString('uci-pwa'); - const userId = client.handshake.headers.channel + client.handshake.headers.userPhone; + const userId = (client.handshake.headers.channel as string) + (client.handshake.headers.userPhone as string); content.from = userId; this.appService.requestToAdapter({ content, to }, this.server); return {};