Move to latest mongoose / fix api
This commit is contained in:
parent
0defc804c0
commit
7b7fa8a0ed
|
@ -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) {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue