Skip to content

Conversation

@nicolasarana
Copy link

@nicolasarana nicolasarana commented Apr 10, 2025

Requerimiento

https://proyectos.andes.gob.ar/browse/MONIT-67

Funcionalidad desarrollada

  1. Se agrego una router nueva PATCH para poder modificar nombre y descripción de las queries y poder desactivar o volver activar las mismas.

UserStory llegó a completarse

  • Si
  • No
  • No corresponde

Requiere actualizaciones en la base de datos

  • Si
  • No

Requiere actualizaciones en la API

  • Si
  • No

Comment on lines 169 to 174
router.post('/queries/:id/delete', async (req, res, next) => {
const Query = mongoose.model('queries');
const queries: any = await Query.findOne({ nombre: req.params.id });
const params = req.body.params;
const mapping = req.body.mapping || [];
const fields = req.body.fields;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Según lo charlado esta ruta se eliminó por error. Volver a agregarla.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya se resolvió

@MarianoCampetella MarianoCampetella added the Changes requested Se solicitaron cambios label Jun 3, 2025
});

router.patch('/queries/:id', async (req, res, next) => {
console.log(req.body);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eliminar console.log(...)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se elimino el console log


return res.json(query);
} catch (e) {
console.error(e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eliminar console.log(...)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se elimino los console logs

@nicolasarana nicolasarana added Changes done Cambios realizados and removed Changes requested Se solicitaron cambios labels Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changes done Cambios realizados

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants