Commit fb77609b authored by jpko19's avatar jpko19
Browse files

Add pee_por_categoria

parent 9c64e673
......@@ -196,6 +196,14 @@ class ReqQueryFields {
// No exemplo `{'state': 41}`
let categorias = ['', 'blindness', 'low_vision', 'deafness', 'hearing_deficiency', 'deafblindness', 'physical_disability', 'intellectual_disability',
'multiple_disabilities', 'autism', 'asperger_syndrom', 'rett_syndrom', 'childhood_desintegrative_disorder', 'supergifted'];
if(obj.pee_por_categoria !== 'undefined')
for(var cat of obj.pee_por_categoria)
obj[categorias[cat]] = true;
// Se o array existe e não está vazio fazemos a interseção
if (typeof arrayOfParams !== 'undefined' && arrayOfParams.length > 0) {
// Fazemos a interseção das chaves de `obj` com o array `arrayOfParams`.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment