From 575de0fe5fb786de61b7f3a71fb9869c5b5bcffa Mon Sep 17 00:00:00 2001 From: pranalidhanavade Date: Wed, 13 Nov 2024 13:41:46 +0530 Subject: [PATCH] fix: ecosystem error handling (#1077) Signed-off-by: pranalidhanavade --- apps/organization/src/organization.service.ts | 3 --- libs/common/src/response-messages/index.ts | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/organization/src/organization.service.ts b/apps/organization/src/organization.service.ts index f01be1827..26b1124a8 100644 --- a/apps/organization/src/organization.service.ts +++ b/apps/organization/src/organization.service.ts @@ -636,9 +636,6 @@ export class OrganizationService { orgIds = organizations?.map(item => item.id); const orgEcosystemDetails = await this._getOrgEcosystems(orgIds); - if (!orgEcosystemDetails || !Array.isArray(orgEcosystemDetails) || 0 === orgEcosystemDetails.length) { - throw new NotFoundException(ResponseMessages.ecosystem.error.ecosystemDetailsNotFound); - } updatedOrgs = getOrgs.organizations.map(org => { const matchingEcosystems = orgEcosystemDetails diff --git a/libs/common/src/response-messages/index.ts b/libs/common/src/response-messages/index.ts index c39a10769..13b43cb9d 100644 --- a/libs/common/src/response-messages/index.ts +++ b/libs/common/src/response-messages/index.ts @@ -385,11 +385,7 @@ export const ResponseMessages = { notFound: 'Not Found', serverError: 'Internal Server error' }, - ecosystem: { - error: { - ecosystemDetailsNotFound: 'Ecosystem details not found' - } - }, + webhook: { success: { webhookUrlRegister: 'Webhook Url registered successfully',