fix some err

This commit is contained in:
soukainna 2023-01-04 16:12:49 +01:00
parent a2b644d548
commit e03f31d3f4
1 changed files with 2 additions and 4 deletions

View File

@ -418,8 +418,7 @@ func (h *ApplicationHandler) DisplayGroupCovoiturage(w http.ResponseWriter, r *h
w.WriteHeader(http.StatusInternalServerError)
return
}
//////////////////////////////////////////////////////////////////////////////////////////////////////
/*******************Code to store more information about mermbers groupscovoiturage**************/
if r.FormValue("departure") != "" {
var a any
json.Unmarshal([]byte(r.FormValue("departure")), &a)
@ -446,7 +445,6 @@ func (h *ApplicationHandler) DisplayGroupCovoiturage(w http.ResponseWriter, r *h
return
}
//////////////////////////////////////////////
request_organizatio := &groupsmanagement.SubscribeMemberRequest{
Group: &groupsmanagement.GroupMember{
Memberid: respbeneficiary.Account.Id,
@ -461,7 +459,7 @@ func (h *ApplicationHandler) DisplayGroupCovoiturage(w http.ResponseWriter, r *h
w.WriteHeader(http.StatusInternalServerError)
return
}
////////////////////////////////////////////////
/******************************************************************************************************/
http.Redirect(w, r, fmt.Sprintf("/app/journeys/groups_covoiturage/create/%s", resp.Group.ToStorageType().ID), http.StatusFound)
return