fix: invalid format in inventory response for UpgradesExpiry
All checks were successful
Build / build (20) (push) Successful in 39s
Build / build (22) (push) Successful in 1m15s
Build / build (18) (push) Successful in 1m16s
Build / build (18) (pull_request) Successful in 39s
Build / build (20) (pull_request) Successful in 1m15s
Build / build (22) (pull_request) Successful in 1m13s

This commit is contained in:
Sainan 2025-04-05 20:19:32 +02:00
parent 65306e0478
commit c16bbb4486

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