Commit be092d6b authored by vicotor's avatar vicotor

fix bug

parent 81f2a89f
......@@ -70,13 +70,14 @@ func (d *Dao) FillInTransferEventInfo(ctx context.Context, inEvent *dbModel.Brid
filter := bson.M{"from_chain": inEvent.FromChain, "out_id": inEvent.OutId}
update := bson.M{
"$set": bson.M{
"from_chain": inEvent.FromChain,
"out_id": inEvent.OutId,
"in_id": inEvent.InId,
"receiver": inEvent.Receiver,
"to_token": inEvent.ToToken,
"receive_amount": inEvent.ReceiveAmount,
"to_chain_status": inEvent.ToChainStatus,
"from_chain": inEvent.FromChain,
"out_id": inEvent.OutId,
"in_id": inEvent.InId,
"receiver": inEvent.Receiver,
"to_token": inEvent.ToToken,
"receive_amount": inEvent.ReceiveAmount,
"to_chain_tx_hash": inEvent.ToChainTxHash,
"to_chain_status": inEvent.ToChainStatus,
},
}
opts := options.Update().SetUpsert(true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment