|
|
|
@ -5,8 +5,8 @@ const convenios = _req.getList("convenios"); |
|
|
|
|
|
|
|
for (const especialidade_uid of especialidades) { |
|
|
|
const dbEspecialidade = _db.form('especialidade') |
|
|
|
.where(_db.where('uid').equal(especialidade_uid)) |
|
|
|
.first(); |
|
|
|
.where(_db.where('uid').equal(especialidade_uid)) |
|
|
|
.first(); |
|
|
|
|
|
|
|
if (!dbEspecialidade) { |
|
|
|
_header.status(404); |
|
|
|
@ -17,8 +17,8 @@ for (const especialidade_uid of especialidades) { |
|
|
|
|
|
|
|
for (const convenio_uid of convenios) { |
|
|
|
const dbConvenio = _db.form('convenio') |
|
|
|
.where(_db.where('uid').equal(convenio_uid)) |
|
|
|
.first(); |
|
|
|
.where(_db.where('uid').equal(convenio_uid)) |
|
|
|
.first(); |
|
|
|
|
|
|
|
if (!dbConvenio) { |
|
|
|
_header.status(404); |
|
|
|
|