Fix traders salessum not increasing on purchase
The chance of a PMC transaction ID overlapping with a trader is slim to none, but the request type can be multiple this for traders. Skip checking type, and validate just using the transaction ID
This commit is contained in:
@@ -79,7 +79,7 @@ public class PaymentService(
|
||||
var requestTransactionId = new MongoId(request.TransactionId);
|
||||
|
||||
// Who is recipient of money player is sending
|
||||
var payToTrader = request.Type == "buy_from_ragfair_trader" && traderHelper.TraderExists(requestTransactionId);
|
||||
var payToTrader = traderHelper.TraderExists(requestTransactionId);
|
||||
|
||||
// May need to convert to trader currency
|
||||
var trader = payToTrader ? traderHelper.GetTrader(requestTransactionId, sessionID) : new TraderBase { Currency = CurrencyType.RUB }; // TODO: cleanup
|
||||
|
||||
Reference in New Issue
Block a user