Skip to content

Commit

Permalink
Fix: saving big map diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Jul 2, 2023
1 parent db85072 commit f48aa2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/models/bigmapdiff/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (b *BigMapDiff) GetIndex() string {
// Save -
func (b *BigMapDiff) Save(tx pg.DBI) error {
_, err := tx.Model(b).
OnConflict("(id) DO UPDATE").
OnConflict("(id, timestamp) DO UPDATE").
Set(`
ptr = excluded.ptr,
key = excluded.key,
Expand Down

0 comments on commit f48aa2e

Please sign in to comment.