Optimize all modals (fetching). Implement add-player modal.
This commit is contained in:
@@ -33,7 +33,7 @@ func GetAllPlayers(c *gin.Context) {
|
||||
// GetPlayersByClanHTML GET /players_html
|
||||
func GetPlayersByClanHTML(c *gin.Context) {
|
||||
var players []models.Player
|
||||
clanId := c.Request.URL.Query().Get("id")
|
||||
clanId := c.Request.URL.Query().Get("clan_id")
|
||||
if err := models.DB.Where("clan_id = ?", utils.StringToUint(clanId)).Find(&players).Error; err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user