From e4ab209774c9f7e526e83cf0c8664312f66469c5 Mon Sep 17 00:00:00 2001 From: Shinsina Date: Tue, 15 Feb 2022 15:41:22 -0600 Subject: [PATCH] Place scheduled on sectionQuery, use schedule date --- packages/section-query-generator/src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/section-query-generator/src/index.js b/packages/section-query-generator/src/index.js index 62db81f87..13c33ce3a 100644 --- a/packages/section-query-generator/src/index.js +++ b/packages/section-query-generator/src/index.js @@ -69,6 +69,7 @@ module.exports = async ({ else: '$expires', }, }, + scheduled: '$startDate', }, }, { $sort: { start: -1 } }, @@ -82,6 +83,7 @@ module.exports = async ({ siteId: '$siteId', start: '$start', end: '$end', + scheduled: '$scheduled', }, }, },