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