Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

Commit

Permalink
Format db categories
Browse files Browse the repository at this point in the history
  • Loading branch information
tommypacker committed Feb 5, 2017
1 parent 537a98d commit aeeca49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/v1/services/RegistrationService.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ module.exports.findAttendeesByName = function(page, count, category, ascending,
* @return {Promise} resolving to a the list of attendees
*/
module.exports.filterAttendees = function(page, count, category, ascending, filterCategory, filterVal) {
var ordering = (ascending ? '' : '-') + category;
var ordering = (ascending ? '' : '-') + utils.database.format(category);
filterCategory = utils.database.format(filterCategory);
return Attendee
.query(function (qb) {
qb.where(filterCategory, '=', filterVal);
Expand Down

0 comments on commit aeeca49

Please sign in to comment.