From b053a957bd6cd3d6030f28bd78a21e020103c7ca Mon Sep 17 00:00:00 2001 From: nyscherm Date: Fri, 13 Apr 2018 13:27:48 -0700 Subject: [PATCH] fix backend sorting fixes #141 --- src/models/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/models/index.js b/src/models/index.js index 07c8d8505..0b74d6c86 100644 --- a/src/models/index.js +++ b/src/models/index.js @@ -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'],