Fix updating ascent/descent when moving line

pull/108/head
Candid Dauth 2017-05-11 02:54:23 +02:00
rodzic 050cd16737
commit a07413f2e7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -192,9 +192,9 @@ module.exports = function(Database) {
return this._setLinePoints(newLine.padId, lineId, routing); return this._setLinePoints(newLine.padId, lineId, routing);
} }
}).then((res) => { }).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;
}); });
}, },