diff --git a/libs/tasks.js b/libs/tasks.js index 00ec186aa..0cbd428ab 100644 --- a/libs/tasks.js +++ b/libs/tasks.js @@ -17,7 +17,7 @@ var onErr = function (aErr, aOnErrFn) { exports.countTask = function (aModelListQuery, aDict, aKey, aOnErrFn) { return function (aCallback) { - aModelListQuery.model.count(aModelListQuery._conditions, function (aErr, aModelListCount) { + aModelListQuery.model.countDocuments(aModelListQuery._conditions, function (aErr, aModelListCount) { if (aErr) { onErr(aErr, aOnErrFn); aCallback(); diff --git a/package.json b/package.json index 528a57d5a..a956db9cc 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "ace-builds": "git://github.com/ajaxorg/ace-builds.git#5fe4368", "ansi-colors": "3.2.4", "async": "2.6.2", - "aws-sdk": "2.464.0", + "aws-sdk": "2.467.0", "base62": "2.0.1", "body-parser": "1.19.0", "bootstrap": "3.4.1", @@ -18,7 +18,7 @@ "diff": "4.0.1", "express": "4.17.1", "express-minify": "1.0.0", - "express-rate-limit": "4.0.2", + "express-rate-limit": "4.0.4", "express-session": "1.16.1", "font-awesome": "4.7.0", "formidable": "1.2.1", @@ -38,7 +38,7 @@ "moment": "2.24.0", "moment-duration-format": "2.2.2", "mongodb": "3.2.6", - "mongoose": "5.5.11", + "mongoose": "5.5.12", "morgan": "1.9.1", "mu2": "0.5.21", "octicons": "4.4.0",