Get seems to be done

This commit is contained in:
SUMUKHA-PK 2019-03-12 21:19:10 +05:30
parent 00840e35db
commit 3da25ee318

View file

@ -41,17 +41,21 @@ func GetTag(req *http.Request, userId string, roomId string) util.JSONResponse {
}
}
mtag := NewMTag()
data, err := accountDB.GetAccountDataByType(
req.Context(), localpart, "ROOM_ID", "m.tag",
)
json.Unmarshal([]byte(data), &mtag)
if err != nil {
return httputil.LogThenError(req, err)
}
return util.JSONResponse{
Code: http.StatusOK,
JSON: tags,
JSON: mtag,
}
}