change equipmentFields
This commit is contained in:
parent
9dd1032128
commit
73cda21f6d
@ -796,7 +796,7 @@ EquipmentSchema.set("toJSON", {
|
||||
}
|
||||
});
|
||||
|
||||
const equipmentFields: Record<string, any> = {};
|
||||
const equipmentFields: Record<string, { type: (typeof EquipmentSchema)[] }> = {};
|
||||
|
||||
equipmentKeys.forEach(key => {
|
||||
equipmentFields[key] = { type: [EquipmentSchema] };
|
||||
|
@ -50,12 +50,6 @@ const convertEquipment = (client: IEquipmentClient): IEquipmentDatabase => {
|
||||
UpgradesExpiry: convertOptionalDate(client.UpgradesExpiry),
|
||||
CrewMembers: client.CrewMembers ? convertCrewShipMembers(client.CrewMembers) : undefined,
|
||||
Details: client.Details ? convertKubrowDetails(client.Details) : undefined,
|
||||
/* fix for
|
||||
"attcol": [],
|
||||
"sigcol": [],
|
||||
"eyecol": [],
|
||||
"facial": [],
|
||||
in data from aleca */
|
||||
Configs: client.Configs
|
||||
? client.Configs.map(obj =>
|
||||
Object.fromEntries(
|
||||
|
Loading…
x
Reference in New Issue
Block a user