Improved InsuranceController.Cost handling of duplicate Ids + made use of MongoIDs

This commit is contained in:
Chomp
2025-07-14 14:57:01 +01:00
parent 7cb286c659
commit 04ffbce106
3 changed files with 26 additions and 16 deletions
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
using SPTarkov.Server.Core.Models.Common;
using SPTarkov.Server.Core.Models.Utils;
namespace SPTarkov.Server.Core.Models.Eft.Insurance;
@@ -9,8 +10,8 @@ public record GetInsuranceCostRequestData : IRequestData
public Dictionary<string, object>? ExtensionData { get; set; }
[JsonPropertyName("traders")]
public List<string>? Traders { get; set; }
public List<MongoId>? Traders { get; set; }
[JsonPropertyName("items")]
public List<string>? Items { get; set; }
public List<MongoId>? Items { get; set; }
}