From c95ee4680aaf398483fe711a34962cb4fd8a5604 Mon Sep 17 00:00:00 2001 From: Chakshu Gautam Date: Fri, 31 Mar 2023 15:59:13 +0530 Subject: [PATCH] Add colon to userId --- src/socket/socket.gateway.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket/socket.gateway.ts b/src/socket/socket.gateway.ts index 94006da..f94c5f4 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 as string) + (client.handshake.headers.userPhone as string); + 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 {};