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

Merge branch 'download_refactor' into development

parents 3348c333 ca703585
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -48,9 +48,11 @@ module.exports = function download(table, mappingTable) {
let dl = new Download({
userId: req.user._id,
table,
name: req.query.name,
mappingTable,
query: req.sql.toString()
});
console.log(dl);
dl.save((err) => {
if(err) log.error(err);
});
......@@ -59,9 +61,11 @@ module.exports = function download(table, mappingTable) {
download = new Download({
userId: req.user._id,
table,
name: req.query.name,
mappingTable,
query: req.sql.toString()
});
console.log(download);
}
download.save((err) => {
......
......@@ -14,6 +14,10 @@ let Download = new Schema({
type: String,
required: true
},
name: {
type: String,
required: true
},
mappingTable: {
type: String,
required: true
......
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