fix: roomSchema not matching IRoom

This commit is contained in:
Sainan 2024-12-23 05:54:19 +01:00
parent 774d5a49c4
commit 07b0d37440

View File

@ -56,7 +56,7 @@ const roomSchema = new Schema<IRoom>(
{
Name: String,
MaxCapacity: Number,
PlacedDecos: [placedDecosSchema]
PlacedDecos: { type: [placedDecosSchema], default: undefined }
},
{ _id: false }
);