We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d9ba6f commit 2223236Copy full SHA for 2223236
1 file changed
api/controllers/club.go
@@ -13,8 +13,6 @@ import (
13
"github.com/gin-gonic/gin"
14
)
15
16
-var clubsDatabase *sql.DB = configs.ConnectClubsDB()
17
-
18
// @Id clubGet
19
// @Router /club/{id} [get]
20
// @Tags Clubs
@@ -28,6 +26,7 @@ func ClubDirectoryInfo(c *gin.Context) {
28
26
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
29
27
defer cancel()
30
+ var clubsDatabase *sql.DB = configs.ConnectClubsDB()
31
id := c.Param("id")
32
33
var raw []byte
@@ -92,6 +91,7 @@ func ClubSearch(c *gin.Context) {
92
91
93
94
95
search := c.Query("q")
96
97
0 commit comments