changes to grant creation and model clean

This commit is contained in:
Arjun Patel
2019-01-30 11:46:14 -08:00
parent 7b19e69447
commit 556369af11
4 changed files with 30 additions and 29 deletions
@@ -20,7 +20,7 @@ exports.findSuggested = (req, res, next) => {
const QUERY =
'SELECT * from organizations ' +
'WHERE primary_cause IN (:causes) and primary_region IN (:regions) ' +
'WHERE primary_cause IN (:causes) or primary_region IN (:regions) ' +
'LIMIT :max_orgs';
db.sequelize
.query(QUERY, {