Skip to content
Snippets Groups Projects
Commit 0cdf2314 authored by Fernando Erd's avatar Fernando Erd :ok_hand:
Browse files

Add filter cozinha

parent 38862797
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!47School number count
Pipeline #
......@@ -178,6 +178,16 @@ rqfCount.addField({
foreign: 'dependencia_adm_priv',
foreignTable: 'escola'
}
}).addValue({
name: 'cozinha',
table: 'escola',
tableField: 'cozinha',
resultField: 'cozinha',
where: {
relation: '=',
type: 'boolean',
field: 'cozinha'
}
// tem problemas
}).addValue({
name: 'government_agreement',
......@@ -190,7 +200,6 @@ rqfCount.addField({
field: 'conveniada_pp'
}
});
schoolApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
console.log(req.filter);
if(typeof req.filter === 'undefined' || Object.keys(req.filter).length === 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment