Removed teh required true from network db.

This commit is contained in:
allanmaaz
2025-08-02 12:34:31 +05:30
parent ab0bf5ca5f
commit 114572024c
+2 -1
View File
@@ -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 }