From f8a143544ad7c9311a6104c49054b732e9c6da78 Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 8 Jul 2025 15:33:14 +0100 Subject: [PATCH] Fixed boxing issue --- .../SPTarkov.Server.Core/Models/Eft/Ws/WsNotificationEvent.cs | 3 ++- .../Models/Spt/Dialog/SendMessageDetails.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Models/Eft/Ws/WsNotificationEvent.cs b/Libraries/SPTarkov.Server.Core/Models/Eft/Ws/WsNotificationEvent.cs index 2735dd82..a024fb72 100644 --- a/Libraries/SPTarkov.Server.Core/Models/Eft/Ws/WsNotificationEvent.cs +++ b/Libraries/SPTarkov.Server.Core/Models/Eft/Ws/WsNotificationEvent.cs @@ -1,4 +1,5 @@ using System.Text.Json.Serialization; +using SPTarkov.Server.Core.Models.Common; namespace SPTarkov.Server.Core.Models.Eft.Ws; @@ -12,5 +13,5 @@ public record WsNotificationEvent public NotificationEventType? EventType { get; set; } [JsonPropertyName("eventId")] - public string? EventIdentifier { get; set; } + public MongoId EventIdentifier { get; set; } } diff --git a/Libraries/SPTarkov.Server.Core/Models/Spt/Dialog/SendMessageDetails.cs b/Libraries/SPTarkov.Server.Core/Models/Spt/Dialog/SendMessageDetails.cs index 17a776d8..8303141d 100644 --- a/Libraries/SPTarkov.Server.Core/Models/Spt/Dialog/SendMessageDetails.cs +++ b/Libraries/SPTarkov.Server.Core/Models/Spt/Dialog/SendMessageDetails.cs @@ -15,7 +15,7 @@ public record SendMessageDetails /// Player id /// [JsonPropertyName("recipientId")] - public string? RecipientId { get; set; } + public MongoId RecipientId { get; set; } /// /// Who is sending this message