kopia lustrzana https://github.com/FacilMap/facilmap
Fix updating ascent/descent when moving line
rodzic
050cd16737
commit
a07413f2e7
|
@ -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;
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue