Skip to content

Commit

Permalink
Merge pull request #341 from rsksmart/Dominikkq-patch-1
Browse files Browse the repository at this point in the history
Duplicate quote inserting fix
  • Loading branch information
Dominikkq authored Nov 7, 2023
2 parents 3441af3 + 48b9116 commit f23d5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongo/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ func (db *DB) GetRetainedPegOutQuote(hash string) (*pegout.RetainedQuote, error)
log.Debug("getting retained quote: ", hash)

coll := db.db.Collection(retainedPegoutQuoteCollection)
filter := bson.D{primitive.E{Key: "quoteHash", Value: hash}}
filter := bson.D{primitive.E{Key: "quotehash", Value: hash}}

var result *pegout.RetainedQuote
err := coll.FindOne(context.TODO(), filter).Decode(&result)
Expand Down

0 comments on commit f23d5d1

Please sign in to comment.