diff --git a/server/database/line.js b/server/database/line.js index 5217efbf..11de5b10 100644 --- a/server/database/line.js +++ b/server/database/line.js @@ -192,9 +192,9 @@ module.exports = function(Database) { return this._setLinePoints(newLine.padId, lineId, routing); } }).then((res) => { - this.emit("line", padId, res.newLine); + this.emit("line", padId, res.linePoints); // res.linePoints returns the line with updated ascent and descent - return res.newLine; + return res.linePoints; }); },