Merge pull request #2409 from bluewave-labs/Capture-version-on-details-page

Capture version on details page
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-06-10 08:59:26 +08:00
commit a85d2c8559
5 files changed
+33 -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 }
);
+1
View File
@@ -243,6 +243,7 @@ class StatusService {
check.disk = disk ?? {};
check.host = host ?? {};
check.errors = errors ?? [];
check.capture = payload?.capture ?? {};
}
return check;
};