feat: more supported equipment types #867

Merged
AMelonInsideLemon merged 6 commits from types into main 2025-01-27 04:18:16 -08:00
Showing only changes of commit 99ab187724 - Show all commits

View File

@ -715,7 +715,7 @@ const traitsSchema = new Schema<ITraits>(
{ _id: false }
);
const detalisSchema = new Schema<IKubrowPetDetailsDatabase>(
const detailsSchema = new Schema<IKubrowPetDetailsDatabase>(
{
Name: String,
IsPuppy: Boolean,
@ -731,7 +731,7 @@ const detalisSchema = new Schema<IKubrowPetDetailsDatabase>(
{ _id: false }
);
detalisSchema.set("toJSON", {
detailsSchema.set("toJSON", {
transform(_doc, returnedObject) {
delete returnedObject.__v;
@ -772,7 +772,7 @@ const EquipmentSchema = new Schema<IEquipmentDatabase>(
Customization: crewShipCustomizationSchema,
RailjackImage: FlavourItemSchema,
CrewMembers: crewShipMembersSchema,
Details: detalisSchema
Details: detailsSchema
},
{ id: false }
);