Skip to content

Commit

Permalink
rank releases by number
Browse files Browse the repository at this point in the history
  • Loading branch information
SachaG committed Jun 17, 2015
1 parent 1526bb2 commit a412f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/telescope-releases/lib/server/publications.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Meteor.publish('currentRelease', function() {
if(Users.is.adminById(this.userId)){
return Releases.find({}, {sort: {createdAt: -1}, limit: 1});
return Releases.find({}, {sort: {number: -1}, limit: 1});
}
return [];
});

0 comments on commit a412f04

Please sign in to comment.