mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-10 01:23:04 +01:00
fix(socket.io): update getPosts controller to return object containing posts instead of straight array
This commit is contained in:
@@ -42,7 +42,7 @@ Categories.getTopicCount = async (req, res) => {
|
||||
|
||||
Categories.getPosts = async (req, res) => {
|
||||
const posts = await api.categories.getPosts(req, { ...req.params });
|
||||
helpers.formatApiResponse(200, res, posts);
|
||||
helpers.formatApiResponse(200, res, { posts });
|
||||
};
|
||||
|
||||
Categories.getChildren = async (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user