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 79d2a0e commit 28fc0a2Copy full SHA for 28fc0a2
database/plugin/metadata/sqlite/account.go
@@ -29,11 +29,11 @@ func (d *MetadataStoreSqlite) GetAccount(
29
ret := models.Account{}
30
tmpAccount := models.Account{}
31
if txn != nil {
32
- if result := txn.First(&tmpAccount, "stakeKey = ?", stakeKey); result.Error != nil {
+ if result := txn.First(&tmpAccount, "staking_key = ?", stakeKey); result.Error != nil {
33
return ret, result.Error
34
}
35
} else {
36
- if result := d.DB().First(&tmpAccount, "stakeKey = ?", stakeKey); result.Error != nil {
+ if result := d.DB().First(&tmpAccount, "staking_key = ?", stakeKey); result.Error != nil {
37
38
39
0 commit comments