This commit is contained in:
Daniel Ledda
2020-11-04 18:19:55 +01:00
parent 5159205b60
commit 997e997d84

View File

@@ -46,10 +46,11 @@ func getSnapshotRecordsFromDb(rowCount int) ([]*SnapshotRecord, error) {
if err != nil {
return nil, err
}
rows.Next()
err = rows.Scan(records)
for i := 0; rows.Next(); i++ {
err = rows.Scan(records[i])
if err != nil {
return nil, err
}
}
return records, nil
}