From 1fbcdcde5cecc7e4102652bb9a2eb804048f9bba Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Thu, 1 May 2025 13:11:08 +0200 Subject: [PATCH] feat: cure vasca virus --- src/services/inventoryService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index 089e2fbb..31a44e0e 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -1506,7 +1506,9 @@ export const applyClientEquipmentUpdates = ( } if (InfestationDate) { - item.InfestationDate = fromMongoDate(InfestationDate); + // 2147483647000 means cured, otherwise became infected + item.InfestationDate = + InfestationDate.$date.$numberLong == "2147483647000" ? new Date(0) : fromMongoDate(InfestationDate); } }); };