diff --git a/repository/repository_manager.go b/repository/repository_manager.go index abf2432..c24366d 100644 --- a/repository/repository_manager.go +++ b/repository/repository_manager.go @@ -681,6 +681,7 @@ func findEndTurnoutPortOrEndKm(repo *Repository, link *Link, startTp *TurnoutPor break } } + link.bindDevices(devices...) return endTp, endKm, err } @@ -751,6 +752,7 @@ func relateDevicesAndLink(repo *Repository, link *Link, startKm *proto.Kilometer case proto.DeviceType_DeviceType_Transponder: device.(*Transponder).bindLinkPosition(linkPosition) } + link.bindDevices(device) } return nil }