Skip to content

Commit

Permalink
add exerciseTypeId filter to /deliverables #78
Browse files Browse the repository at this point in the history
  • Loading branch information
markfejes committed Sep 25, 2017
1 parent ac4a894 commit dc03f08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions endpoints/deliverables/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ module.exports = async (req, res) => {
$in: userExTypeIds
}
} : {},
(filter && 'exerciseTypeId' in filter) ? {
ExerciseTypeId: parseInt(filter.exerciseTypeId, 10)
} : {}
]
},
include: [
Expand Down

0 comments on commit dc03f08

Please sign in to comment.