mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 13:14:24 +08:00
fix error with user update (#2348)
* fix: user update * fix: user update
This commit is contained in:
parent
de5790f067
commit
5271a2084b
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ func updateUserNetworks(w http.ResponseWriter, r *http.Request) {
|
|||
logic.ReturnErrorResponse(w, r, logic.FormatError(err, "internal"))
|
||||
return
|
||||
}
|
||||
var userChange *models.User
|
||||
userChange := &models.User{}
|
||||
// we decode our body request params
|
||||
err = json.NewDecoder(r.Body).Decode(userChange)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue