Changes:
query
middleware now converts the squel object in req.sql
to the correct format (using .toParam()
)Closes simcaq/SCRUM#18
CC: @jvtr12 @rce16 @jdo @gas15
Future work:
The way the sql is being constructed is still messy. See this function. There should be a better way to do the joins. I don't know if the field selection and the where inclusion also can be improved.