Skip to content

Commit cae792e

Browse files
author
Jiri Malek
committed
Make sure the withdrawal fin time field exists on shift attempt.
1 parent ba81c80 commit cae792e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/repository/db/withdrawal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (db *MongoDbBridge) shiftClosedWithdrawRequest(col *mongo.Collection, wr *t
137137
{types.FiWithdrawalAddress, wr.Address.String()},
138138
{types.FiWithdrawalToValidator, wr.StakerID.String()},
139139
{types.FiWithdrawalRequestID, wr.WithdrawRequestID.String()},
140-
{types.FiWithdrawalFinTime, bson.D{{"$ne", nil}}},
140+
{types.FiWithdrawalFinTime, bson.D{{"$exists", true}, {"$ne", nil}}},
141141
}, bson.D{{"$set", bson.D{
142142
{types.FiWithdrawalRequestID, wr.RequestTrx.String()},
143143
}}}, new(options.UpdateOptions).SetUpsert(true))

0 commit comments

Comments
 (0)