Add operator code to VSTP schedules

This commit is contained in:
Fred Boniface 2024-04-24 23:19:34 +01:00
parent 1231371bcf
commit 44adfea363

View File

@ -30,6 +30,11 @@ func convertCifType(in *upstreamApi.VSTPSchedule) (error, *upstreamApi.JsonSched
log.Warn("More than one element in schedule segment")
}
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
} else {
log.Warn("VSTP Schedule Segment empty")