Skip to content

Commit 28fc0a2

Browse files
authored
fix(database): correct column name for getting account (#647)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 79d2a0e commit 28fc0a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/plugin/metadata/sqlite/account.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ func (d *MetadataStoreSqlite) GetAccount(
2929
ret := models.Account{}
3030
tmpAccount := models.Account{}
3131
if txn != nil {
32-
if result := txn.First(&tmpAccount, "stakeKey = ?", stakeKey); result.Error != nil {
32+
if result := txn.First(&tmpAccount, "staking_key = ?", stakeKey); result.Error != nil {
3333
return ret, result.Error
3434
}
3535
} else {
36-
if result := d.DB().First(&tmpAccount, "stakeKey = ?", stakeKey); result.Error != nil {
36+
if result := d.DB().First(&tmpAccount, "staking_key = ?", stakeKey); result.Error != nil {
3737
return ret, result.Error
3838
}
3939
}

0 commit comments

Comments
 (0)