adminmate-express-mongoose 1.3.8 → 1.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminmate-express-mongoose",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "Adminmate Express/Mongoose connector",
5
5
  "author": "Marc Delalonde",
6
6
  "homepage": "http://adminmate.io",
@@ -14,7 +14,7 @@ module.exports = _conf => {
14
14
  const fieldsToSearchIn = req.query.search_in_fields || [];
15
15
  const page = parseInt(req.query.page || 1);
16
16
  const rowsPerPage = parseInt(req.query.rows || 10);
17
- const defaultOrdering = [ ['_id', 'DESC'] ];
17
+ const defaultOrdering = [ ['_id', 'desc'] ];
18
18
  const order = req.query.order || null;
19
19
 
20
20
  const currentModel = fnHelper.getModelObject(modelName);