Skip to content
Snippets Groups Projects
Unverified Commit 2c75a3db authored by João Victor Risso's avatar João Victor Risso
Browse files

Change type verification to typeof

parent 4944e77e
No related branches found
No related tags found
1 merge request!7Refactor enrollments route to include query building
Pipeline #
...@@ -247,7 +247,7 @@ router.get('/enrollments', function(req, res, next) { ...@@ -247,7 +247,7 @@ router.get('/enrollments', function(req, res, next) {
router.get('/enrollments', function(req, res, next) { router.get('/enrollments', function(req, res, next) {
log.debug('Request parameters: ${ req }?'); log.debug('Request parameters: ${ req }?');
if (!req.sqlQuery) { if (typeof req.sqlQuery === 'undefined') {
/* Should only happen if there is a bug in the chaining of the /* Should only happen if there is a bug in the chaining of the
* '/enrollments' route, since when no +aggregate+ parameter is given, * '/enrollments' route, since when no +aggregate+ parameter is given,
* it defaults to use the query for the whole country. * it defaults to use the query for the whole country.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment