From 6c8295d89cf1a924c7ae0f49a0d487d5a043ce93 Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Wed, 24 May 2017 00:41:26 +0200 Subject: [PATCH] Fix sending edited line to clients when route is not recalculated --- server/database/line.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; });