Skip to content

Commit

Permalink
Add query when fetching all associated products
Browse files Browse the repository at this point in the history
  • Loading branch information
rayangler committed Oct 11, 2023
1 parent eb3f83f commit 67a9fb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const getAllAssociatedRepoBranchesEntries = async (metadata: Metadata) =>

try {
const db = await pool();
const aggregationPipeline = getAggregationPipeline({ project: { $in: fetch } });
const aggregationPipeline = getAggregationPipeline({ project: { $in: fetch }, prodDeployable: true });
const cursor = db.collection('docsets').aggregate(aggregationPipeline);
const docsets = (await cursor.toArray()) as ReposBranchesDocument[];
docsets.forEach((doc: ReposBranchesDocument) => {
Expand Down

0 comments on commit 67a9fb2

Please sign in to comment.