From 559d9994ca15ceb2efaf62331d600ae1f9d5d90b Mon Sep 17 00:00:00 2001 From: Josh Worden Date: Thu, 22 Jul 2021 09:52:47 -0500 Subject: [PATCH] Remove content status check --- .../graphql-server/src/graphql/resolvers/website/schedule.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/graphql-server/src/graphql/resolvers/website/schedule.js b/services/graphql-server/src/graphql/resolvers/website/schedule.js index 0cd9a58a2..702863d12 100644 --- a/services/graphql-server/src/graphql/resolvers/website/schedule.js +++ b/services/graphql-server/src/graphql/resolvers/website/schedule.js @@ -138,10 +138,9 @@ module.exports = { const { contentId, sectionId } = input; const [content, section] = await Promise.all([ - load('platformContent', contentId, { status: 1, published: 1, type: 1 }), + load('platformContent', contentId, { published: 1, type: 1 }), basedb.strictFindOne('website.Section', { _id: sectionId }, { projection: { site: 1 } }), ]); - if (content.status !== 1) throw new UserInputError('The content status must be published.'); const startDate = input.startDate || content.published || new Date(); const siteId = BaseDB.extractRefId(section.site);