Skip to content

Commit 575de0f

Browse files
fix: ecosystem error handling (#1077)
Signed-off-by: pranalidhanavade <[email protected]>
1 parent f2c27b6 commit 575de0f

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

apps/organization/src/organization.service.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,6 @@ export class OrganizationService {
636636
orgIds = organizations?.map(item => item.id);
637637

638638
const orgEcosystemDetails = await this._getOrgEcosystems(orgIds);
639-
if (!orgEcosystemDetails || !Array.isArray(orgEcosystemDetails) || 0 === orgEcosystemDetails.length) {
640-
throw new NotFoundException(ResponseMessages.ecosystem.error.ecosystemDetailsNotFound);
641-
}
642639

643640
updatedOrgs = getOrgs.organizations.map(org => {
644641
const matchingEcosystems = orgEcosystemDetails

libs/common/src/response-messages/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,7 @@ export const ResponseMessages = {
385385
notFound: 'Not Found',
386386
serverError: 'Internal Server error'
387387
},
388-
ecosystem: {
389-
error: {
390-
ecosystemDetailsNotFound: 'Ecosystem details not found'
391-
}
392-
},
388+
393389
webhook: {
394390
success: {
395391
webhookUrlRegister: 'Webhook Url registered successfully',

0 commit comments

Comments
 (0)