Feature for adding capture version on the deatils page.

This commit is contained in:
Owaise Imdad committed 2025-06-08 00:13:47 +05:30
1 parent 9c921896fd
commit ccc9faa892
4 files changed
+20 -2

No files matched your search

+10
View File
@@ -35,6 +35,11 @@ const errorSchema = mongoose.Schema({
err: { type: String, default: "" },
});
const captureSchema = mongoose.Schema({
version: { type: String, default: "" },
mode: { type: String, default: "" },
});
const HardwareCheckSchema = mongoose.Schema(
{
...BaseCheckSchema.obj,
@@ -59,6 +64,11 @@ const HardwareCheckSchema = mongoose.Schema(
type: [errorSchema],
default: () => [],
},
capture: {
type: captureSchema,
default: () => ({}),
},
},
{ timestamps: true }
);