From 5cae39789dd9277d13e040423fbef8ebca2f60a5 Mon Sep 17 00:00:00 2001 From: bhavanakarwade <137506897+bhavanakarwade@users.noreply.github.com> Date: Tue, 13 Feb 2024 16:00:09 +0530 Subject: [PATCH] fix: added logger (#508) Signed-off-by: bhavanakarwade --- apps/connection/src/connection.service.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/connection/src/connection.service.ts b/apps/connection/src/connection.service.ts index 004a29527..b064518ed 100644 --- a/apps/connection/src/connection.service.ts +++ b/apps/connection/src/connection.service.ts @@ -55,16 +55,12 @@ export class ConnectionService { throw new NotFoundException(ResponseMessages.connection.error.agentEndPointNotFound); } - let logoImageUrl; - if (organisation.logoUrl) { - logoImageUrl = organisation.logoUrl; - } - + this.logger.log(`logoUrl:::, ${organisation.logoUrl}`); const connectionPayload = { multiUseInvitation: multiUseInvitation || true, autoAcceptConnection: autoAcceptConnection || true, alias: alias || undefined, - imageUrl: logoImageUrl ? logoImageUrl : imageUrl ? imageUrl : undefined, + imageUrl: organisation.logoUrl || imageUrl || undefined, label: organisation.name, goal: goal || undefined, goalCode: goalCode || undefined,