Skip to content

Commit

Permalink
Add att ideal reward column (#382)
Browse files Browse the repository at this point in the history
* Add att ideal reward column

* add missing 11 expression
  • Loading branch information
pablomendezroyo authored Oct 2, 2024
1 parent cd47394 commit 8bbf8c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/brain/src/modules/apiClients/postgres/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ CREATE TABLE IF NOT EXISTS ${this.tableName} (
*/
public async insertPerformanceData(data: ValidatorPerformance): Promise<void> {
const query = `
INSERT INTO ${this.tableName} (${Columns.validatorIndex}, ${Columns.epoch}, ${Columns.executionClient}, ${Columns.consensusClient}, ${Columns.slot}, ${Columns.liveness}, ${Columns.blockProposalStatus}, ${Columns.syncCommitteeRewards}, ${Columns.attestationsTotalRewards}, ${Columns.error})
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)
INSERT INTO ${this.tableName} (${Columns.validatorIndex}, ${Columns.epoch}, ${Columns.executionClient}, ${Columns.consensusClient}, ${Columns.slot}, ${Columns.liveness}, ${Columns.blockProposalStatus}, ${Columns.syncCommitteeRewards}, ${Columns.attestationsTotalRewards}, ${Columns.attestationsIdealRewards}, ${Columns.error})
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)
ON CONFLICT (${Columns.validatorIndex}, ${Columns.epoch})
DO UPDATE SET
${Columns.executionClient} = EXCLUDED.${Columns.executionClient},
Expand Down

0 comments on commit 8bbf8c8

Please sign in to comment.