kopia lustrzana https://github.com/FacilMap/facilmap
Fix sending edited line to clients when route is not recalculated
rodzic
ffc13e645c
commit
6c8295d89c
|
@ -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;
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue