mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
🐛 Fixed sending feedback on email only posts
fixes https://github.com/TryGhost/Team/issues/2220 `Post.findOne` is filtering by status 'published' by default. 'sent' isn't 'published' so we throw a 404 error when trying to send feedback to a 'sent' post.
This commit is contained in:
parent
96aa0e6ba6
commit
3048c7e790
@ -62,6 +62,6 @@ module.exports = class FeedbackRepository {
|
||||
}
|
||||
|
||||
async getPostById(id) {
|
||||
return await this.#Post.findOne({id});
|
||||
return await this.#Post.findOne({id, status: 'all'});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user