Skip to content

Commit

Permalink
Merge pull request #714 from oasisprotocol/ptrus/fix/validator-logo-url
Browse files Browse the repository at this point in the history
validators/metadata: fix upserting logo url
  • Loading branch information
ptrus authored Jun 21, 2024
2 parents 403dae6 + a88d523 commit d97ead5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Empty file added .changelog/714.trivial.md
Empty file.
3 changes: 2 additions & 1 deletion analyzer/queries/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ var (
INSERT INTO chain.entities(id, address, meta, logo_url)
VALUES ($1, $2, $3, $4)
ON CONFLICT (id) DO UPDATE SET
meta = excluded.meta`
meta = excluded.meta,
logo_url = excluded.logo_url`

ConsensusIncreaseGeneralBalanceUpsert = `
INSERT INTO chain.accounts (address, general_balance)
Expand Down
3 changes: 3 additions & 0 deletions api/spec/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ x-examples:
- &iso_timestamp_3 '2022-10-15T00:05:34Z'
time-duration:
- &time_duration_1 '72h3m0.5s'
validator-media:
- &validator_media_1 '{"email":"[email protected]","keybase":"validator_keybase","name":"Example Validator","twitter":"validator_twitter","url":"https://example.com","logoUrl": "https://example.com/logo.png"}'

x-err-responses:
common-errors: &common_error_responses
Expand Down Expand Up @@ -1877,6 +1879,7 @@ components:
description: Whether the entity has a node that is registered for being a validator, node is up to date, and has successfully registered itself. It may or may not be part of validator set.
media:
allOf: [$ref: '#/components/schemas/ValidatorMedia']
example: *validator_media_1
current_rate:
type: integer
format: uint64
Expand Down

0 comments on commit d97ead5

Please sign in to comment.