Skip to content

Commit

Permalink
Merge pull request #451 from insolar/MN-825-fix-update-amend
Browse files Browse the repository at this point in the history
MN-825: fix update amend
  • Loading branch information
pavlushev committed Oct 20, 2020
2 parents 199d1fb + 1c6a924 commit 6ca54ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/observer/postgres/burned_balance.go
Expand Up @@ -63,7 +63,7 @@ func (s *BurnedBalanceStorage) Update(model *observer.BurnedBalance) error {
return nil
}

res, err := s.db.Model(&observer.BurnedBalance{}).
res, err := s.db.Model(&models.BurnedBalance{}).
Where("account_state=?", model.PrevState.Bytes()).
Set("balance=?,account_state=?", model.Balance, model.AccountState.Bytes()).
Update()
Expand Down

0 comments on commit 6ca54ed

Please sign in to comment.