Skip to content

Commit

Permalink
Update oracle.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nnn-gif committed Oct 10, 2023
1 parent 8f78f94 commit 0bc2f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/model/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ func (rdb *RelDB) GetFeeder(feederID string) (oracleconfig dia.OracleConfig, err

query = fmt.Sprintf(`
SELECT address, feeder_id, owner,symbols, chainID, frequency, sleepseconds, deviationpermille, blockchainnode, active,mandatory_frequency, feeder_address, createddate, COALESCE(lastupdate, '0001-01-01 00:00:00'::timestamp),deleted,feedselection,expired,expired_time
FROM %s WHERE feederID=feeder_id
FROM %s WHERE feeder_id=$1
`, oracleconfigTable)
row = rdb.postgresClient.QueryRow(context.Background(), query)
row = rdb.postgresClient.QueryRow(context.Background(), query, feederID)

if err != nil {
return
Expand Down

0 comments on commit 0bc2f86

Please sign in to comment.