diff --git a/modules/persistence/src/services/metadata/repos_branches/index.ts b/modules/persistence/src/services/metadata/repos_branches/index.ts index 26c0a25e1..dbb53b67a 100644 --- a/modules/persistence/src/services/metadata/repos_branches/index.ts +++ b/modules/persistence/src/services/metadata/repos_branches/index.ts @@ -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) => {