chore: fix typo
All checks were successful
Build Docker image / docker (push) Successful in 1m8s
Build / build (push) Successful in 1m34s

This commit is contained in:
Sainan 2025-05-01 13:09:45 +02:00
parent c4b2248df5
commit 8eefd67d79
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ export const toMongoDate = (date: Date): IMongoDate => {
return { $date: { $numberLong: date.getTime().toString() } }; return { $date: { $numberLong: date.getTime().toString() } };
}; };
export const fromMongoData = (date: IMongoDate): Date => { export const fromMongoDate = (date: IMongoDate): Date => {
return new Date(parseInt(date.$date.$numberLong)); return new Date(parseInt(date.$date.$numberLong));
}; };

View File

@ -69,7 +69,7 @@ import {
import { createShip } from "./shipService"; import { createShip } from "./shipService";
import { import {
catbrowDetails, catbrowDetails,
fromMongoData, fromMongoDate,
kubrowDetails, kubrowDetails,
kubrowFurPatternsWeights, kubrowFurPatternsWeights,
kubrowWeights, kubrowWeights,
@ -1506,7 +1506,7 @@ export const applyClientEquipmentUpdates = (
} }
if (InfestationDate) { if (InfestationDate) {
item.InfestationDate = fromMongoData(InfestationDate); item.InfestationDate = fromMongoDate(InfestationDate);
} }
}); });
}; };