Skip to content

Commit

Permalink
fix: ecosystem error handling (#1077)
Browse files Browse the repository at this point in the history
Signed-off-by: pranalidhanavade <[email protected]>
  • Loading branch information
pranalidhanavade authored Nov 13, 2024
1 parent f2c27b6 commit 575de0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions apps/organization/src/organization.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions libs/common/src/response-messages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 575de0f

Please sign in to comment.