-
Notifications
You must be signed in to change notification settings - Fork 1
FEAT: Se agrego una nueva router para hacer patch a las queries. #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| 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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya se resolvió
bi-queries/index.ts
Outdated
| }); | ||
|
|
||
| router.patch('/queries/:id', async (req, res, next) => { | ||
| console.log(req.body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eliminar console.log(...)
There was a problem hiding this comment.
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
bi-queries/index.ts
Outdated
|
|
||
| return res.json(query); | ||
| } catch (e) { | ||
| console.error(e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eliminar console.log(...)
There was a problem hiding this comment.
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
Requerimiento
https://proyectos.andes.gob.ar/browse/MONIT-67
Funcionalidad desarrollada
UserStory llegó a completarse
Requiere actualizaciones en la base de datos
Requiere actualizaciones en la API