Skip to content

Commit

Permalink
fix backend sorting
Browse files Browse the repository at this point in the history
fixes #141
  • Loading branch information
nyscherm committed Apr 13, 2018
1 parent ec1e4e2 commit b053a95
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ Restaurant.findAllWithTagIds = ({ team_id }) =>
order: [
[Restaurant.associations.decisions, 'id', 'NULLS LAST'],
sequelize.literal('(COUNT(*) OVER(PARTITION BY "restaurant"."id")) DESC'),
[Restaurant.associations.votes, 'created_at', 'DESC', 'NULLS LAST'],
sequelize.literal('all_decision_count ASC'),
sequelize.literal('all_vote_count DESC'),
['name', 'ASC'],
Expand Down

0 comments on commit b053a95

Please sign in to comment.