diff --git a/cmd/http/restServer/go.mod b/cmd/http/restServer/go.mod index 4fbc0a190..051b7c947 100644 --- a/cmd/http/restServer/go.mod +++ b/cmd/http/restServer/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/appleboy/gin-jwt/v2 v2.6.4 - github.com/diadata-org/diadata v1.4.411 + github.com/diadata-org/diadata v1.4.413 github.com/gin-contrib/cache v1.1.0 github.com/gin-gonic/contrib v0.0.0-20201101042839-6a891bf89f19 github.com/gin-gonic/gin v1.8.1 diff --git a/pkg/model/oracle.go b/pkg/model/oracle.go index 46141ab23..ea1a0e5d6 100644 --- a/pkg/model/oracle.go +++ b/pkg/model/oracle.go @@ -537,7 +537,7 @@ func (rdb *RelDB) ExpireOracle(feederID string) (err error) { query := fmt.Sprintf(` UPDATE %s SET expired=$1, deleted=$2,lastupdate=$4 - WHERE feeder_id=$4`, oracleconfigTable) + WHERE feeder_id=$3`, oracleconfigTable) _, err = rdb.postgresClient.Exec(context.Background(), query, true, true, feederID, currentTime) if err != nil { return