diff --git a/routes/api/users/users.go b/routes/api/users/users.go index b042e61..d8bd750 100644 --- a/routes/api/users/users.go +++ b/routes/api/users/users.go @@ -37,11 +37,13 @@ func Routes(route *gin.Engine) { err := context.ShouldBindJSON(&f) if err != nil { context.Error(err) + return } data, err := twitch.GetBulkStreamerInfo(f.Streamers) if err != nil { context.Error(err) + return } context.JSON(200, extractor.FormatMessage(data, true)) })