Skip to content
Snippets Groups Projects
Commit da0d00ca authored by ems19's avatar ems19
Browse files

[FIX] Activity

parent 91894bf4
No related branches found
No related tags found
4 merge requests!379homologa -> master,!378dev -> homologa,!375Prd migration,!374Prd migration
......@@ -193,19 +193,19 @@ activityApp.put('/:id', passport.authenticate('bearer', { session: false }), aut
});
}
console.log("TEste");
act.type = req.body.type || act.type;
act.title = req.body.title || act.title;
act.subtitle = req.body.subtitle || act.subtitle;
act.date = req.body.date || act.date;
act.authors = req.body.autores || act.authors;
act.text = req.body.text || act.text;
act.name_headline = req.body.name_headline || act.name_headline;
act.resume_headline = req.body.resume_headline || act.resume_headline;
act.date_headline = req.body.date_headline || act.date_headline;
act.local_headline = req.body.local_headline || act.local_headline;
act.additional_headline = req.body.additional_headline || act.additional_headline;
act.is_draft = req.body.is_draft || act.is_draft;
act.is_headline = req.body.is_headline || act.is_headline;
act.type = req.body.tipo || act.type;
act.title = req.body.titulo || act.title;
act.subtitle = req.body.subtitulo || act.subtitle;
act.date = req.body.dataDePostagem || act.date;
act.authors = req.body.autor || act.authors;
act.text = req.body.texto || act.text;
act.name_headline = req.body.nome || act.name_headline;
act.resume_headline = req.body.resumo || act.resume_headline;
act.date_headline = req.body.dataAtividade || act.date_headline;
act.local_headline = req.body.local || act.local_headline;
act.additional_headline = req.body.informacoes || act.additional_headline;
act.is_draft = req.body.rascunho || act.is_draft;
//act.is_headline = req.body.is_headline || act.is_headline;
act.save().catch(err => {
if (err) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment