Skip to content

Commit

Permalink
fix: added condition for empty resouceId
Browse files Browse the repository at this point in the history
Signed-off-by: tipusinghaw <tipu.singh@ayanworks.com>
  • Loading branch information
tipusinghaw committed Oct 30, 2023
1 parent 75c317d commit 71bc913
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 71bc913

Please sign in to comment.