From 56a2e56b1ca9d881c532982f0fe16cf7897a6950 Mon Sep 17 00:00:00 2001 From: Katharina Irrgang Date: Fri, 14 Oct 2016 14:39:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=20fetch=20all=20scheduled=20pos?= =?UTF-8?q?ts=20on=20bootstrap=20(#7567)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs #7555 - remove filters, they can cause problems --- core/server/scheduling/post-scheduling/index.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/server/scheduling/post-scheduling/index.js b/core/server/scheduling/post-scheduling/index.js index 9f0d4be556..f208921f55 100644 --- a/core/server/scheduling/post-scheduling/index.js +++ b/core/server/scheduling/post-scheduling/index.js @@ -27,12 +27,10 @@ _private.loadClient = function loadClient() { }; _private.loadScheduledPosts = function () { - return schedules.getScheduledPosts({ - from: moment().subtract(7, 'days').startOf('day').toDate(), - to: moment().endOf('day').toDate() - }).then(function (result) { - return result.posts || []; - }); + return schedules.getScheduledPosts() + .then(function (result) { + return result.posts || []; + }); }; exports.init = function init(options) {