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:
DrakiaXYZ
2025-10-08 16:29:20 -07:00
parent b2e33c551a
commit b15d1e3034
@@ -79,7 +79,7 @@ public class PaymentService(
var requestTransactionId = new MongoId(request.TransactionId); var requestTransactionId = new MongoId(request.TransactionId);
// Who is recipient of money player is sending // 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 // May need to convert to trader currency
var trader = payToTrader ? traderHelper.GetTrader(requestTransactionId, sessionID) : new TraderBase { Currency = CurrencyType.RUB }; // TODO: cleanup var trader = payToTrader ? traderHelper.GetTrader(requestTransactionId, sessionID) : new TraderBase { Currency = CurrencyType.RUB }; // TODO: cleanup