This commit is contained in:
Roman Isaev 2025-01-23 02:45:56 +00:00
parent bf31c44298
commit a185027fda
No known key found for this signature in database
GPG key ID: 7BE2B6A6C89AEC7F
4 changed files with 18 additions and 23 deletions

View file

@ -551,12 +551,6 @@ func AdminUserDeviceRetrieveCreate(
switch req.Method {
case http.MethodPost:
if err != nil {
return util.JSONResponse{
Code: http.StatusBadRequest,
JSON: spec.InvalidParam(userID),
}
}
var payload struct {
DeviceID string `json:"device_id"`
}
@ -980,11 +974,10 @@ func AdminRetrieveAccount(req *http.Request, cfg *config.ClientAPI, userAPI user
Code: http.StatusNotFound,
JSON: spec.NotFound(err.Error()),
}
} else if err != nil {
return util.JSONResponse{
Code: http.StatusInternalServerError,
JSON: spec.Unknown(err.Error()),
}
}
return util.JSONResponse{
Code: http.StatusInternalServerError,
JSON: spec.Unknown(err.Error()),
}
}
body.AvatarURL = profile.AvatarURL