diff --git a/CHANGELOG.md b/CHANGELOG.md index a4bfb83bf8faa8e1c8532dd115c91793abc41335..3926308420a01368d1a529dcfe028773a9ed2e80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 1.8.3 - 2018-11-24 +### Changed +- Fixed reulst return in classroom count + ## 1.8.2 - 2018-11-23 ### Changed - Fixed class count route diff --git a/src/libs/routes/classroomCount.js b/src/libs/routes/classroomCount.js index 6fc655c90c6a78dafafaa6bccab2d6419780f4b4..71d6f54e24403ee4fef2b56d08a188ff46ba2f28 100644 --- a/src/libs/routes/classroomCount.js +++ b/src/libs/routes/classroomCount.js @@ -625,12 +625,9 @@ classroomCountApp.post('/', rqf.parse(), (req, res, next) => { } } - req.result = { - result: reduction || result, - leftovers - } + req.result = reduction || result; next(); }, response('classroom_count')); -module.exports = classroomCountApp; \ No newline at end of file +module.exports = classroomCountApp;