Skip to content

Commit

Permalink
feat(EP): patch de fields de ficha epidemiologica
Browse files Browse the repository at this point in the history
  • Loading branch information
plammel authored and Pancho committed Jul 14, 2021
1 parent 12e15aa commit b9c7cc0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export async function updateField(id, body) {
return ficha;
}

export async function getLAMPPendientes() {
export async function getLAMPPendientes() {
return await FormsEpidemiologia.find({ 'secciones.fields.lamp.id': 'muestra' });
}

export async function importLAMPResults() {
const lamps = await this.getLAMPPendientes();
EventCore.emitAsync('notificacion:epidemio:lamp', lamps);
EventCore.emitAsync('notificacion:epidemio:lamp', { lamps } );
}

0 comments on commit b9c7cc0

Please sign in to comment.