Skip to content

Commit

Permalink
fix: fixed build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM authored and MonikaCat committed Jan 19, 2024
1 parent e8e6151 commit 012e820
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 @@ -124,7 +124,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 012e820

Please sign in to comment.