Skip to content

Commit

Permalink
common: reference conflict targets when upserting POIDisputes
Browse files Browse the repository at this point in the history
  • Loading branch information
tilacog committed Sep 1, 2023
1 parent a285b05 commit ec3e5d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/indexer-common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Reference SQL conflict targets when upserting `POIDisputes`.

## [0.20.21] - 2023-08-24
### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default {
'previousEpochReferenceProof',
'status',
],
conflictAttributes: ['allocationID', 'protocolNetwork'],
})
return createdDisputes.map((dispute: POIDispute) => dispute.toGraphQL())
},
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-common/src/operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ export class Operator {
)
} catch (error) {
const err = indexerError(IndexerErrorCode.IE039, error)
this.logger.error('Failed to store potential POI disputes', {
this.logger.error('Failed to fetch POI disputes', {
err,
})
throw err
Expand Down

0 comments on commit ec3e5d7

Please sign in to comment.