diff --git a/endpoints/deliverables/list.js b/endpoints/deliverables/list.js index 921b22c..96eb1ea 100644 --- a/endpoints/deliverables/list.js +++ b/endpoints/deliverables/list.js @@ -153,6 +153,9 @@ module.exports = async (req, res) => { $in: userExTypeIds } } : {}, + (filter && 'exerciseTypeId' in filter) ? { + ExerciseTypeId: parseInt(filter.exerciseTypeId, 10) + } : {} ] }, include: [