typo
This commit is contained in:
parent
73cda21f6d
commit
99ab187724
@ -715,7 +715,7 @@ const traitsSchema = new Schema<ITraits>(
|
|||||||
{ _id: false }
|
{ _id: false }
|
||||||
);
|
);
|
||||||
|
|
||||||
const detalisSchema = new Schema<IKubrowPetDetailsDatabase>(
|
const detailsSchema = new Schema<IKubrowPetDetailsDatabase>(
|
||||||
{
|
{
|
||||||
Name: String,
|
Name: String,
|
||||||
IsPuppy: Boolean,
|
IsPuppy: Boolean,
|
||||||
@ -731,7 +731,7 @@ const detalisSchema = new Schema<IKubrowPetDetailsDatabase>(
|
|||||||
{ _id: false }
|
{ _id: false }
|
||||||
);
|
);
|
||||||
|
|
||||||
detalisSchema.set("toJSON", {
|
detailsSchema.set("toJSON", {
|
||||||
transform(_doc, returnedObject) {
|
transform(_doc, returnedObject) {
|
||||||
delete returnedObject.__v;
|
delete returnedObject.__v;
|
||||||
|
|
||||||
@ -772,7 +772,7 @@ const EquipmentSchema = new Schema<IEquipmentDatabase>(
|
|||||||
Customization: crewShipCustomizationSchema,
|
Customization: crewShipCustomizationSchema,
|
||||||
RailjackImage: FlavourItemSchema,
|
RailjackImage: FlavourItemSchema,
|
||||||
CrewMembers: crewShipMembersSchema,
|
CrewMembers: crewShipMembersSchema,
|
||||||
Details: detalisSchema
|
Details: detailsSchema
|
||||||
},
|
},
|
||||||
{ id: false }
|
{ id: false }
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user