Fix sending edited line to clients when route is not recalculated

pull/108/head
Candid Dauth 2017-05-24 00:41:26 +02:00
rodzic ffc13e645c
commit 6c8295d89c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;
});