diff --git a/Libraries/SPTarkov.Server.Core/Controllers/RagfairController.cs b/Libraries/SPTarkov.Server.Core/Controllers/RagfairController.cs
index 5164ec5f..16be64cb 100644
--- a/Libraries/SPTarkov.Server.Core/Controllers/RagfairController.cs
+++ b/Libraries/SPTarkov.Server.Core/Controllers/RagfairController.cs
@@ -1116,7 +1116,7 @@ public class RagfairController(
/// Id of offer to remove
/// Session id of requesting player
/// ItemEventRouterResponse
- public ItemEventRouterResponse FlagOfferForRemoval(string offerId, MongoId sessionId)
+ public ItemEventRouterResponse FlagOfferForRemoval(MongoId offerId, MongoId sessionId)
{
var output = eventOutputHolder.GetOutput(sessionId);
diff --git a/Libraries/SPTarkov.Server.Core/Helpers/RagfairOfferHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/RagfairOfferHelper.cs
index 6ce1798a..06cabbd8 100644
--- a/Libraries/SPTarkov.Server.Core/Helpers/RagfairOfferHelper.cs
+++ b/Libraries/SPTarkov.Server.Core/Helpers/RagfairOfferHelper.cs
@@ -759,7 +759,7 @@ public class RagfairOfferHelper(
* @param sessionId Session id of profile to delete offer from
* @param offerId Id of offer to delete
*/
- protected void DeleteOfferById(MongoId sessionId, string offerId)
+ protected void DeleteOfferById(MongoId sessionId, MongoId offerId)
{
var profileRagfairInfo = profileHelper.GetPmcProfile(sessionId).RagfairInfo;
var offerIndex = profileRagfairInfo.Offers.FindIndex(o => o.Id == offerId);
diff --git a/Libraries/SPTarkov.Server.Core/Servers/RagfairServer.cs b/Libraries/SPTarkov.Server.Core/Servers/RagfairServer.cs
index e061a913..f909dd33 100644
--- a/Libraries/SPTarkov.Server.Core/Servers/RagfairServer.cs
+++ b/Libraries/SPTarkov.Server.Core/Servers/RagfairServer.cs
@@ -99,7 +99,7 @@ public class RagfairServer(
/// Disable/Hide an offer from flea
///
/// OfferID to hide
- public void HideOffer(string offerId)
+ public void HideOffer(MongoId offerId)
{
var offers = _ragfairOfferService.GetOffers();
var offer = offers.FirstOrDefault(x => x.Id == offerId);
@@ -119,7 +119,7 @@ public class RagfairServer(
offer.Locked = true;
}
- public RagfairOffer? GetOffer(string offerId)
+ public RagfairOffer? GetOffer(MongoId offerId)
{
return _ragfairOfferService.GetOfferByOfferId(offerId);
}
diff --git a/Libraries/SPTarkov.Server.Core/Services/RagfairTaxService.cs b/Libraries/SPTarkov.Server.Core/Services/RagfairTaxService.cs
index aafa27b1..b34e83da 100644
--- a/Libraries/SPTarkov.Server.Core/Services/RagfairTaxService.cs
+++ b/Libraries/SPTarkov.Server.Core/Services/RagfairTaxService.cs
@@ -22,7 +22,7 @@ public class RagfairTaxService(
)
{
protected readonly Dictionary<
- string,
+ MongoId,
StorePlayerOfferTaxAmountRequestData
> _playerOfferTaxCache = new();
@@ -31,16 +31,16 @@ public class RagfairTaxService(
StorePlayerOfferTaxAmountRequestData offer
)
{
- _playerOfferTaxCache[offer.Id] = offer;
+ _playerOfferTaxCache[offer.Id.Value] = offer;
}
- public void ClearStoredOfferTaxById(string offerIdToRemove)
+ public void ClearStoredOfferTaxById(MongoId offerIdToRemove)
{
_playerOfferTaxCache.Remove(offerIdToRemove);
}
public StorePlayerOfferTaxAmountRequestData GetStoredClientOfferTaxValueById(
- string offerIdToGet
+ MongoId offerIdToGet
)
{
return _playerOfferTaxCache[offerIdToGet];