integration with parcoursmob
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 2m23s
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 2m23s
This commit is contained in:
@@ -71,12 +71,22 @@ func (s *CarpoolServiceServerImpl) DriverJourneys(ctx context.Context, req *prot
|
||||
distance = &dist
|
||||
}
|
||||
|
||||
operator := "internal"
|
||||
if usermap["operator"] != nil {
|
||||
operator = usermap["operator"].(string)
|
||||
}
|
||||
|
||||
alias := ""
|
||||
if usermap["alias"] != nil {
|
||||
alias = usermap["alias"].(string)
|
||||
}
|
||||
|
||||
results = append(results, &proto.CarpoolServiceDriverJourney{
|
||||
Id: journeyId,
|
||||
Driver: &proto.CarpoolServiceUser{
|
||||
Id: usermap["id"].(string),
|
||||
Operator: usermap["operator"].(string),
|
||||
Alias: usermap["alias"].(string),
|
||||
Operator: operator,
|
||||
Alias: alias,
|
||||
},
|
||||
Operator: s.Handler.InternalOperatorID,
|
||||
PassengerPickupLat: req.DepartureLat,
|
||||
|
||||
Reference in New Issue
Block a user