Skip to content

Commit

Permalink
Renamed missed occurences of "nachlauf" to "offdelay"
Browse files Browse the repository at this point in the history
  • Loading branch information
cprezzi committed Feb 19, 2020
1 parent 2b1b92c commit 9a46a93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/controllers/aasController.js
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ exports.machine_edit = function(req, res) {
}
//console.log('connected as id ' + connection.threadId);

connection.query('UPDATE machines SET name=?, config=?, price=?, period=?, uid=?, min_periods=?, nachlauf=?, watchdog=? WHERE mid=?', [req.body.name, req.body.config, req.body.price, req.body.period, req.body.uid, req.body.min_periods, req.body.nachlauf, req.body.watchdog, req.query.mid], function(error, result) {
connection.query('UPDATE machines SET name=?, config=?, price=?, period=?, uid=?, min_periods=?, offdelay=?, watchdog=? WHERE mid=?', [req.body.name, req.body.config, req.body.price, req.body.period, req.body.uid, req.body.min_periods, req.body.offdelay, req.body.watchdog, req.query.mid], function(error, result) {
if (error) {
res.send(error);
} else {
Expand All @@ -963,7 +963,7 @@ exports.machine_edit = function(req, res) {
}
//console.log('connected as id ' + connection.threadId);

connection.query('INSERT machines SET name=?, config=?, price=?, period=?, uid=?, min_periods=?, nachlauf=?, watchdog=?', [req.body.name, req.body.config, req.body.price, req.body.period, req.body.uid, req.body.min_periods, req.body.nachlauf, req.body.watchdog], function(error, result) {
connection.query('INSERT machines SET name=?, config=?, price=?, period=?, uid=?, min_periods=?, offdelay=?, watchdog=?', [req.body.name, req.body.config, req.body.price, req.body.period, req.body.uid, req.body.min_periods, req.body.offdelay, req.body.watchdog], function(error, result) {
connection.release();
if (error) {
res.send(error);
Expand Down

0 comments on commit 9a46a93

Please sign in to comment.