Add operator code to VSTP schedules
This commit is contained in:
parent
1231371bcf
commit
44adfea363
@ -30,6 +30,11 @@ func convertCifType(in *upstreamApi.VSTPSchedule) (error, *upstreamApi.JsonSched
|
|||||||
log.Warn("More than one element in schedule segment")
|
log.Warn("More than one element in schedule segment")
|
||||||
}
|
}
|
||||||
out.ScheduleSegment = convertSchedule(&in.ScheduleSegment[0])
|
out.ScheduleSegment = convertSchedule(&in.ScheduleSegment[0])
|
||||||
|
if trim(in.ScheduleSegment[0].AtocCode) != "" {
|
||||||
|
out.AtocCode = in.ScheduleSegment[0].AtocCode
|
||||||
|
} else {
|
||||||
|
out.AtocCode = "UK"
|
||||||
|
}
|
||||||
return nil, out
|
return nil, out
|
||||||
} else {
|
} else {
|
||||||
log.Warn("VSTP Schedule Segment empty")
|
log.Warn("VSTP Schedule Segment empty")
|
||||||
|
Loading…
Reference in New Issue
Block a user