Skip to content

Commit

Permalink
Merge pull request #211 from credebl/159-develop-display-all-schema-list
Browse files Browse the repository at this point in the history
fix: handled empty resourceId for ecosystem's schema list
  • Loading branch information
KulkarniShashank authored Oct 31, 2023
2 parents 605caaa + 71bc913 commit f741a17
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/ecosystem/src/ecosystem.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,13 +595,16 @@ export class EcosystemRepository {
ecosystem: {
id: ecosystemId
}
},
resourceId: {
not: {
equals: null
}
}
}
});

const schemaArray = [];
schemaDetails.map((schemaData) => schemaArray.push(schemaData.resourceId));

const schemasResult = await this.prisma.schema.findMany({
where: {
OR: [
Expand Down

0 comments on commit f741a17

Please sign in to comment.