Skip to content

Commit

Permalink
do not update status
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo committed May 17, 2024
1 parent 56ed996 commit 9674c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion listener/internal/api/handlers/postNewSignature.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func insertSignaturesIntoDB(signatures []types.SignatureRequestDecodedWithStatus
"network": req.Network,
}
update := bson.M{
"$set": bson.M{"status": req.Status},
"$setOnInsert": bson.M{"status": req.Status}, // do not update status if already exists
"$push": bson.M{
"entries": bson.M{
"payload": req.Payload,
Expand Down

0 comments on commit 9674c7b

Please sign in to comment.