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
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:
parent
c98d872d52
commit
96f7a05bef
@ -57,7 +57,7 @@ const roomSchema = new Schema<IRoom>(
|
||||
{
|
||||
Name: String,
|
||||
MaxCapacity: Number,
|
||||
PlacedDecos: { type: [placedDecosSchema], default: undefined }
|
||||
PlacedDecos: { type: [placedDecosSchema], default: [] }
|
||||
},
|
||||
{ _id: false }
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user