feat: cure vasca virus
All checks were successful
Build / build (push) Successful in 1m40s
Build / build (pull_request) Successful in 56s

This commit is contained in:
Sainan 2025-05-01 13:11:08 +02:00
parent 8eefd67d79
commit 1fbcdcde5c

View File

@ -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);
}
});
};