We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0685bd4 commit 25aaa92Copy full SHA for 25aaa92
internal/database/mariadb.go
@@ -527,7 +527,7 @@ func (m *MariaDB) FlushAll() error {
527
// CountAssets count the total number of assets in db.
528
func (m *MariaDB) CountAssets() (int64, error) {
529
var count int64
530
- row := m.db.QueryRowContext(context.Background(), "SELECT COUNT(*) FROM assets")
+ row := m.db.QueryRowContext(context.Background(), "SELECT COUNT(DISTINCT value, type) FROM assets")
531
532
err := row.Scan(&count)
533
if err != nil {
0 commit comments