Skip to content

Commit

Permalink
Merge pull request #502 from credebl/issues-on-dev-environment
Browse files Browse the repository at this point in the history
fix:not able to create cred-def after initially rejecting.
  • Loading branch information
pranalidhanavade authored Feb 9, 2024
2 parents 4a3bb03 + 96b301d commit e08051c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/ecosystem/src/ecosystem.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,13 @@ export class EcosystemService {
this.ecosystemRepository.getAgentDetails(getEcosystemLeadDetails.orgId),
this.ecosystemRepository.getEcosystemOrgDetailsbyId(orgId, ecosystemId)
]);

const existsCredDef = credDefRequestExist?.filter(tag => tag.status === endorsementTransactionStatus.REQUESTED ||
tag.status === endorsementTransactionStatus.SIGNED ||
tag.status === endorsementTransactionStatus.SUBMITED
) ?? [];

if (0 !== credDefRequestExist.length) {
if (0 < existsCredDef.length) {
throw new ConflictException(ResponseMessages.ecosystem.error.credDefAlreadyExist);
}

Expand Down

0 comments on commit e08051c

Please sign in to comment.