This commit is contained in:
@@ -15,7 +15,7 @@ type SportHandler struct {
|
||||
}
|
||||
|
||||
func (handler *SportHandler) List(c *gin.Context) {
|
||||
sports, err := handler.Service.List(c.Request.Context())
|
||||
sports, _, err := handler.Service.List(c.Request.Context())
|
||||
if err != nil {
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user