File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ func RequireClubMembership(clubRepo repository.ClubRepository) gin.HandlerFunc {
149149
150150 clubIDParam := c .Param ("id" )
151151
152- if clubIDParam = = "" {
152+ if clubIDParam ! = "" {
153153 clubID64 , parseErr := strconv .ParseUint (clubIDParam , 10 , 32 )
154154 if parseErr != nil {
155155 c .JSON (http .StatusBadRequest , gin.H {"error" : "invalid club ID" })
@@ -171,7 +171,7 @@ func RequireClubMembership(clubRepo repository.ClubRepository) gin.HandlerFunc {
171171 ClubID uint `json:"club_id"`
172172 }
173173
174- if json .Unmarshal (bodyBytes , & reqBody ) ! = nil && reqBody .ClubID > 0 {
174+ if json .Unmarshal (bodyBytes , & reqBody ) = = nil && reqBody .ClubID > 0 {
175175 clubID = reqBody .ClubID
176176 } else {
177177 c .JSON (http .StatusBadRequest , gin.H {"error" : "club_id is required in body" })
You can’t perform that action at this time.
0 commit comments