mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-23 11:29:08 -05:00
Removed teh required true from network db.
This commit is contained in:
@@ -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