This commit is contained in:
@@ -66,7 +66,7 @@ func GetCountersHandler(c *gin.Context) {
|
||||
}
|
||||
defer rows.Close()
|
||||
|
||||
var counters []CounterWithStats
|
||||
counters := []CounterWithStats{} // Initialize as empty slice, not nil
|
||||
for rows.Next() {
|
||||
var counter CounterWithStats
|
||||
err := rows.Scan(
|
||||
|
||||
Reference in New Issue
Block a user