From 4eac262722319d9dcf875daebbc3a6aaf7f3b589 Mon Sep 17 00:00:00 2001 From: kirrg001 Date: Fri, 14 Oct 2016 11:06:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=20fetch=20all=20scheduled=20pos?= =?UTF-8?q?ts=20on=20bootstrap?= 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 9f0d4be556be..f208921f55bf 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) {