From 3f9596c63077986289d24961a1713f8afc922b4b Mon Sep 17 00:00:00 2001 From: nicky Date: Thu, 21 Sep 2023 15:40:15 +0530 Subject: [PATCH] Update oracle.go --- pkg/model/oracle.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/model/oracle.go b/pkg/model/oracle.go index 5554bac9c..a3e5e6000 100644 --- a/pkg/model/oracle.go +++ b/pkg/model/oracle.go @@ -239,7 +239,7 @@ func (rdb *RelDB) GetOraclesByOwner(owner string) (oracleconfigs []dia.OracleCon query := fmt.Sprintf(` SELECT - t1.address, t1.feeder_id, t1.owner, t1.symbols, t1.chainID, + t1.address, t1.feeder_id,t1.deleted, t1.owner, t1.symbols, t1.chainID, t1.frequency, t1.sleepseconds, t1.deviationpermille, t1.blockchainnode, t1.active, t1.mandatory_frequency, t1.feeder_address, t1.createddate, t1.feedselection, COALESCE(t1.lastupdate, '0001-01-01 00:00:00'::timestamp) AS lastupdate, @@ -251,7 +251,7 @@ func (rdb *RelDB) GetOraclesByOwner(owner string) (oracleconfigs []dia.OracleCon AND t1.chainID = fu.chain_id WHERE t1.owner = $1 GROUP BY - t1.address, t1.feeder_id, t1.owner, t1.symbols, t1.chainID, + t1.address, t1.feeder_id, t1.deleted, t1.owner, t1.symbols, t1.chainID, t1.frequency, t1.sleepseconds, t1.deviationpermille, t1.blockchainnode, t1.active, t1.mandatory_frequency, t1.feeder_address, t1.createddate, t1.feedselection, t1.lastupdate, t1.expired,t1.expired_time;`, oracleconfigTable, feederupdatesTable) @@ -268,7 +268,7 @@ func (rdb *RelDB) GetOraclesByOwner(owner string) (oracleconfigs []dia.OracleCon feedSelection sql.NullString ) - err := rows.Scan(&oracleconfig.Address, &oracleconfig.FeederID, &oracleconfig.Owner, &symbols, + err := rows.Scan(&oracleconfig.Address, &oracleconfig.FeederID, &oracleconfig.Deleted, &oracleconfig.Owner, &symbols, &oracleconfig.ChainID, &oracleconfig.Frequency, &oracleconfig.SleepSeconds, &oracleconfig.DeviationPermille, &oracleconfig.BlockchainNode, &oracleconfig.Active, &oracleconfig.MandatoryFrequency, &oracleconfig.FeederAddress, &oracleconfig.CreatedDate, &feedSelection, &oracleconfig.LastUpdate, &oracleconfig.Expired, &oracleconfig.ExpiredDate, &oracleconfig.LastOracleUpdate)