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:
parent
3830d288e2
commit
e55f6e35e3
|
@ -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}}},
|
||||
|
|
Loading…
Reference in New Issue