Skip to content
Snippets Groups Projects
Commit d9ffbafe authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Change region download table

parent 889a8f1c
No related branches found
No related tags found
1 merge request!116Release v1.0.0
......@@ -34,7 +34,7 @@ module.exports = function(agenda) {
let mailOptions = {
to: 'Teste <vsbc14@inf.ufpr.br>',
subject: 'DOWNLOAD!!!!!',
text: body + '\n\nOi!'
text: `Oi!\n\n ${body}`
};
mail(mailOptions, (err, info) => {
if (err) {
......
......@@ -57,7 +57,7 @@ regionApp.get('/', rqf.parse(), (req, res, next) => {
const agenda = require(`${libs}/agenda`);
regionApp.get('/download', (req, res) => {
req.sql.from('escola').field('*');
req.sql.from('regiao').field('*');
let params = req.sql;
agenda.now('download database', {sql: req.sql.toString(), table: req.sql.tableFrom});
res.json({msg: 'Wait for it...'});
......
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