0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

🎨 fetch all scheduled posts on bootstrap (#7567)

refs #7555
- remove filters, they can cause problems
This commit is contained in:
Katharina Irrgang 2016-10-14 14:39:10 +02:00 committed by Hannah Wolfe
parent 8cd5d9f6fe
commit 56a2e56b1c

View file

@ -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) {