fix: default PlacedDecos in schema to [] to match the type
All checks were successful
Build / build (18) (push) Successful in 1m13s
Build / build (20) (push) Successful in 41s
Build / build (22) (push) Successful in 1m8s
Build / build (18) (pull_request) Successful in 43s
Build / build (20) (pull_request) Successful in 1m10s
Build / build (22) (pull_request) Successful in 1m11s

This commit is contained in:
Sainan 2025-03-18 17:58:57 +01:00
parent c98d872d52
commit 96f7a05bef

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 }
);