Ajout de l'interface pour selectionner des disques et modifications du coté serveur pour la sauvegarde
This commit is contained in:
1 parent
913f7a9e42
commit
7edc2a71d8
7 files changed
+153
-1
No files matched your search
@@ -125,6 +125,10 @@ const MonitorSchema = mongoose.Schema(
|
||||
return this.alertThreshold;
|
||||
},
|
||||
},
|
||||
selectedDisks: {
|
||||
type: [String],
|
||||
default: [],
|
||||
},
|
||||
gameId: {
|
||||
type: String,
|
||||
},
|
||||
|
||||
@@ -174,6 +174,7 @@ const createMonitorBodyValidation = joi.object({
|
||||
expectedValue: joi.string().allow(""),
|
||||
matchMethod: joi.string(),
|
||||
gameId: joi.string().allow(""),
|
||||
selectedDisks: joi.array().items(joi.string()).optional(),
|
||||
group: joi.string().max(50).trim().allow(null, "").optional(),
|
||||
});
|
||||
|
||||
@@ -204,6 +205,7 @@ const editMonitorBodyValidation = joi.object({
|
||||
usage_temperature: joi.number(),
|
||||
}),
|
||||
gameId: joi.string(),
|
||||
selectedDisks: joi.array().items(joi.string()).optional(),
|
||||
group: joi.string().max(50).trim().allow(null, "").optional(),
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user