Revise disk field from diskSchema to [diskSchema]
This commit is contained in:
1 parent
ddb058b58c
commit
433dbf1907
1 file changed
+2
-2
@@ -46,8 +46,8 @@ const HardwareCheckSchema = mongoose.Schema(
|
|||||||
default: () => ({}),
|
default: () => ({}),
|
||||||
},
|
},
|
||||||
disk: {
|
disk: {
|
||||||
type: discSchema,
|
type: [discSchema],
|
||||||
default: () => ({}),
|
default: () => [],
|
||||||
},
|
},
|
||||||
host: {
|
host: {
|
||||||
type: hostSchema,
|
type: hostSchema,
|
||||||
|
|||||||
Reference in new issue
Block a user