Skip to content

Commit

Permalink
updated task model
Browse files Browse the repository at this point in the history
  • Loading branch information
abarnhard committed Aug 8, 2014
1 parent 39d0b5a commit a0f11f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Task.find3 = function(query, cb){
var options = {limit:3}, filter = {};
if(query.filter){filter = {tags:{$in:[query.filter]}};}
if(query.sortBy){
var sort = query.order * 1;
var sort = (query.order) ? query.order * 1 : 1;
options.sort = [[query.sortBy,sort]];
}
if(query.page){
Expand Down

0 comments on commit a0f11f1

Please sign in to comment.