Skip to content

Commit

Permalink
add prepared statments to some api methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
jppade committed Nov 6, 2023
1 parent cc26b27 commit 26c70e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/http/restServer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/model/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26c70e1

Please sign in to comment.