Skip to content

Commit

Permalink
🎨 fetch all scheduled posts on bootstrap (#7567)
Browse files Browse the repository at this point in the history
refs #7555
- remove filters, they can cause problems
  • Loading branch information
kirrg001 authored and ErisDS committed Oct 14, 2016
1 parent 8cd5d9f commit 56a2e56
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions core/server/scheduling/post-scheduling/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 56a2e56

Please sign in to comment.