From 69ff204c5d0c1e89b1547bdc37a07ebc2e10e5e0 Mon Sep 17 00:00:00 2001 From: Zeeshaun Date: Thu, 19 Mar 2026 17:07:24 -0500 Subject: [PATCH] Fixing model mismatch --- microservices/LocationsApi/Services/LocationStore.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/microservices/LocationsApi/Services/LocationStore.cs b/microservices/LocationsApi/Services/LocationStore.cs index 8a63434..261e33b 100644 --- a/microservices/LocationsApi/Services/LocationStore.cs +++ b/microservices/LocationsApi/Services/LocationStore.cs @@ -454,7 +454,15 @@ public class LocationStore public string OwnerUserId { get; set; } = string.Empty; - public Coord Coord { get; set; } = new(); + public CharacterCoord Coord { get; set; } = new(); + } + + [MongoDB.Bson.Serialization.Attributes.BsonIgnoreExtraElements] + private class CharacterCoord + { + public int X { get; set; } + + public int Y { get; set; } } }