diff --git a/app/controllers/job_controller.js b/app/controllers/job_controller.js index 4b13b1bc..86e3cd26 100644 --- a/app/controllers/job_controller.js +++ b/app/controllers/job_controller.js @@ -80,7 +80,11 @@ JobController.prototype.createJob = function (req, res) { var data = { user: res.locals.user, query: sql, - host: res.locals.userDbParams.host + host: res.locals.userDbParams.host, + port: res.locals.userDbParams.port, + pass: res.locals.userDbParams.pass, + dbname: res.locals.userDbParams.dbname, + dbuser: res.locals.userDbParams.user }; this.jobService.create(data, jobResponse(req, res, this.statsdClient, 'create', 201));