fix: invalid format in inventory response for UpgradesExpiry (#1473)

Reviewed-on: OpenWF/SpaceNinjaServer#1473
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-04-06 06:04:04 -07:00 committed by Sainan
parent 3c79f910a2
commit 2bdb722986

View File

@ -899,6 +899,9 @@ EquipmentSchema.set("toJSON", {
if (db.InfestationDate) { if (db.InfestationDate) {
client.InfestationDate = toMongoDate(db.InfestationDate); client.InfestationDate = toMongoDate(db.InfestationDate);
} }
if (db.UpgradesExpiry) {
client.UpgradesExpiry = toMongoDate(db.UpgradesExpiry);
}
} }
}); });