diff --git a/server/database/line.js b/server/database/line.js index 5b43f138..0168f8ea 100644 --- a/server/database/line.js +++ b/server/database/line.js @@ -195,7 +195,7 @@ module.exports = function(Database) { return this._setLinePoints(newLine.padId, lineId, routing); } }).then((res) => { - this.emit("line", padId, res.linePoints); // res.linePoints returns the line with updated ascent and descent + this.emit("line", padId, res.linePoints || res.newLine); // res.linePoints returns the line with updated ascent and descent return res.linePoints; });