Fix operations query by txHash when the vaa was processed correctly (#1255)

Co-authored-by: walker-16 <agpazos85@gmail.com>
This commit is contained in:
ftocal 2024-03-27 10:58:50 -03:00 committed by GitHub
parent 3830d288e2
commit e55f6e35e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -172,6 +172,8 @@ func (r *Repository) matchOperationByTxHash(ctx context.Context, txHash string)
return bson.D{{Key: "$match", Value: bson.D{{Key: "$or", Value: bson.A{
bson.D{{Key: "originTx.nativeTxHash", Value: bson.M{"$eq": txHashHex}}},
bson.D{{Key: "originTx.nativeTxHash", Value: bson.M{"$eq": txHash}}},
bson.D{{Key: "originTx.nativeTxHash", Value: bson.M{"$eq": qLower}}},
bson.D{{Key: "originTx.nativeTxHash", Value: bson.M{"$eq": qHigher}}},
bson.D{{Key: "originTx.attribute.value.originTxHash", Value: bson.M{"$eq": txHashHex}}},
bson.D{{Key: "originTx.attribute.value.originTxHash", Value: bson.M{"$eq": txHash}}},
bson.D{{Key: "originTx.attribute.value.originTxHash", Value: bson.M{"$eq": qLower}}},