Commit 89310aa7 authored by Mubeena Ishaq's avatar Mubeena Ishaq
Browse files

fix individual subscription GET method in meep-vis

parent 81abe095
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1113,7 +1113,7 @@ func individualSubscriptionGET(w http.ResponseWriter, r *http.Request) {
	keyName := baseKey + "subscriptions:" + subsIdStr

	// Find subscription entry in Redis DB
	v2xMsgJson, err := rc.JSONGetEntry(keyName, ".")
	v2xMsgJson, _ := rc.JSONGetEntry(keyName, ".")
	if v2xMsgJson == "" {
		w.WriteHeader(http.StatusNotFound)
		return
@@ -1121,7 +1121,7 @@ func individualSubscriptionGET(w http.ResponseWriter, r *http.Request) {

	// Prepare & send v2xMsgSubscription as a response
	var v2xMsgSubResp V2xMsgSubscription
	err = json.Unmarshal([]byte(v2xMsgJson), &v2xMsgSubResp)
	err := json.Unmarshal([]byte(v2xMsgJson), &v2xMsgSubResp)
	if err != nil {
		log.Error(err.Error())
		errHandlerProblemDetails(w, err.Error(), http.StatusInternalServerError)