mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	refactor(socket.io): deprecate categories.getTopicCount in favour of api.categories.getTopicCount
This commit is contained in:
		| @@ -35,6 +35,10 @@ Categories.delete = async (req, res) => { | ||||
| 	helpers.formatApiResponse(200, res); | ||||
| }; | ||||
|  | ||||
| Categories.getTopicCount = async (req, res) => { | ||||
| 	helpers.formatApiResponse(200, res, await api.categories.getTopicCount(req, { ...req.params })); | ||||
| }; | ||||
|  | ||||
| Categories.getPosts = async (req, res) => { | ||||
| 	const posts = await api.categories.getPosts(req, { ...req.params }); | ||||
| 	helpers.formatApiResponse(200, res, posts); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user