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 78c8ece commit 1819090Copy full SHA for 1819090
database/plugin/metadata/sqlite/transaction.go
@@ -87,8 +87,10 @@ func (d *MetadataStoreSqlite) getOrCreateAccount(
87
func saveAccountIfNew(account *models.Account, txn *gorm.DB) error {
88
if account.ID == 0 {
89
result := txn.Clauses(clause.OnConflict{
90
- Columns: []clause.Column{{Name: "staking_key"}},
91
- UpdateAll: true,
+ Columns: []clause.Column{{Name: "staking_key"}},
+ DoUpdates: clause.AssignmentColumns(
92
+ []string{"pool", "drep"},
93
+ ),
94
}).Create(account)
95
if result.Error != nil {
96
return result.Error
0 commit comments