Removed teh required true from network db.
This commit is contained in:
1 parent
ab0bf5ca5f
commit
114572024c
1 file changed
+2
-1
@@ -41,7 +41,7 @@ const captureSchema = mongoose.Schema({
|
||||
});
|
||||
|
||||
const networkInterfaceSchema = mongoose.Schema({
|
||||
name: { type: String, required: true },
|
||||
name: { type: String},
|
||||
bytes_sent: { type: Number, default: 0 },
|
||||
bytes_recv: { type: Number, default: 0 },
|
||||
packets_sent: { type: Number, default: 0 },
|
||||
@@ -87,6 +87,7 @@ const HardwareCheckSchema = mongoose.Schema(
|
||||
net: {
|
||||
type: [networkInterfaceSchema],
|
||||
default: () => [],
|
||||
required: false,
|
||||
},
|
||||
},
|
||||
{ timestamps: true }
|
||||
|
||||
Reference in new issue
Block a user