fix: default PlacedDecos in schema to [] to match the type (#1235)
Some checks failed
Build / build (20) (push) Successful in 43s
Build / build (18) (push) Successful in 1m9s
Build Docker image / docker (push) Has been cancelled
Build / build (22) (push) Has been cancelled

Reviewed-on: #1235
This commit is contained in:
Sainan 2025-03-20 05:36:45 -07:00
parent 6135fdcdb9
commit 352c6df339

View File

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