Feature for adding capture version on the deatils page.
This commit is contained in:
1 parent
9c921896fd
commit
ccc9faa892
4 files changed
+20
-2
No files matched your search
@@ -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 }
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user