From 030c295f48cf5d5fdf89dd2a2b6fe6a35b6b5d89 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Thu, 1 Aug 2024 15:45:16 +0700 Subject: [PATCH] Fix viewer bug with Mongo deserialization The Mongo data includes an `_id` field which needs to be ignored, otherwise Mongo will throw an exception saying that it doesn't know what to do with that field. --- backend/LfClassicData/Entities/Entry.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/LfClassicData/Entities/Entry.cs b/backend/LfClassicData/Entities/Entry.cs index d9c8c2411..01c7b1037 100644 --- a/backend/LfClassicData/Entities/Entry.cs +++ b/backend/LfClassicData/Entities/Entry.cs @@ -36,6 +36,7 @@ public class Example } +[BsonIgnoreExtraElements] public class OptionListRecord { public required string Code { get; set; }