mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 17:15:08 -05:00
fix status code 200 (#47818)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package searchusers
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/grafana/grafana/pkg/api/dtos"
|
||||
"github.com/grafana/grafana/pkg/api/response"
|
||||
"github.com/grafana/grafana/pkg/models"
|
||||
@@ -27,7 +29,7 @@ func (s *OSSService) SearchUsers(c *models.ReqContext) response.Response {
|
||||
return response.Error(500, "Failed to fetch users", err)
|
||||
}
|
||||
|
||||
return response.JSON(200, query.Result.Users)
|
||||
return response.JSON(http.StatusOK, query.Result.Users)
|
||||
}
|
||||
|
||||
func (s *OSSService) SearchUsersWithPaging(c *models.ReqContext) response.Response {
|
||||
@@ -36,7 +38,7 @@ func (s *OSSService) SearchUsersWithPaging(c *models.ReqContext) response.Respon
|
||||
return response.Error(500, "Failed to fetch users", err)
|
||||
}
|
||||
|
||||
return response.JSON(200, query.Result)
|
||||
return response.JSON(http.StatusOK, query.Result)
|
||||
}
|
||||
|
||||
func (s *OSSService) SearchUser(c *models.ReqContext) (*models.SearchUsersQuery, error) {
|
||||
|
||||
Reference in New Issue
Block a user