From 7533d2125a2991f48b870fa21390128482a9130c Mon Sep 17 00:00:00 2001 From: Clara Youdale Date: Mon, 1 Apr 2024 09:07:27 -0300 Subject: [PATCH] Add quiet to createLandingPage latests incidents --- site/gatsby-site/page-creators/createLandingPage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/gatsby-site/page-creators/createLandingPage.js b/site/gatsby-site/page-creators/createLandingPage.js index cdc384686d..aa81571bf0 100644 --- a/site/gatsby-site/page-creators/createLandingPage.js +++ b/site/gatsby-site/page-creators/createLandingPage.js @@ -4,7 +4,9 @@ const createLandingPage = async (graphql, createPage) => { const result = await graphql(` query LandingPage { latestIncidents: allMongodbAiidprodIncidents( - filter: { reports: { elemMatch: { is_incident_report: { eq: true } } } } + filter: { + reports: { elemMatch: { is_incident_report: { eq: true }, quiet: { in: [null, false] } } } + } sort: { reports: { epoch_date_submitted: DESC } } limit: 5 ) {