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:
parent
8cd5d9f6fe
commit
56a2e56b1c
1 changed files with 4 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue