Move to latest mongoose / fix api

This commit is contained in:
Anatoliy Chakkaev 2012-08-14 19:12:42 +04:00
parent 0defc804c0
commit 7b7fa8a0ed
2 changed files with 3 additions and 3 deletions

View File

@ -164,9 +164,9 @@ MongooseAdapter.prototype.all = function all(model, filter, callback) {
if (m[1] === 'DE') reverse = true;
}
if (reverse) {
query.desc(key);
query.sort('-' + key);
} else {
query.asc(key);
query.sort(key);
}
}
if (filter.limit) {

View File

@ -33,7 +33,7 @@
"coffee-script": ">= 1.2.0",
"nodeunit": ">= 0.6.4",
"redis": ">= 0.6.7",
"mongoose": ">= 2.2.3",
"mongoose": "latest",
"mysql": ">= 0.9.4",
"pg": "latest",
"sqlite3": ">= 2.0.18",