fix: default PlacedDecos in schema to [] to match the type #1235

Merged
Sainan merged 1 commits from placeddecos-default into main 2025-03-20 05:36:46 -07:00

View File

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