Skip to content

Commit

Permalink
fix: fixed build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM committed Nov 23, 2022
1 parent 57f1b6b commit 578b745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/postgresql/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ VALUES ($1, $2, $3, $4, $5, $6) ON CONFLICT DO NOTHING`
// GetTotalBlocks implements database.Database
func (db *Database) GetTotalBlocks() int64 {
var blockCount int64
err := db.Sql.QueryRow(`SELECT count(*) FROM block;`).Scan(&blockCount)
err := db.SQL.QueryRow(`SELECT count(*) FROM block;`).Scan(&blockCount)
if err != nil {
return 0
}
Expand Down

0 comments on commit 578b745

Please sign in to comment.