Revise disk field from diskSchema to [diskSchema]

This commit is contained in:
Alex Holliday committed 2024-10-22 10:02:14 +08:00
1 parent ddb058b58c
commit 433dbf1907
1 file changed
+2 -2
+2 -2
View File
@@ -46,8 +46,8 @@ const HardwareCheckSchema = mongoose.Schema(
default: () => ({}),
},
disk: {
type: discSchema,
default: () => ({}),
type: [discSchema],
default: () => [],
},
host: {
type: hostSchema,