replace sub_section to plant_sub_section
This commit is contained in:
@@ -4,7 +4,7 @@ const Joi = require("joi");
|
||||
// Plant Sub Section Validation
|
||||
// ========================
|
||||
const insertSubSectionSchema = Joi.object({
|
||||
sub_section_name: Joi.string()
|
||||
plant_sub_section_name: Joi.string()
|
||||
.max(200)
|
||||
.required()
|
||||
.messages({
|
||||
@@ -17,7 +17,7 @@ const insertSubSectionSchema = Joi.object({
|
||||
});
|
||||
|
||||
const updateSubSectionSchema = Joi.object({
|
||||
sub_section_name: Joi.string()
|
||||
plant_sub_section_namesub_section_name: Joi.string()
|
||||
.max(200)
|
||||
.messages({
|
||||
"string.base": "Sub section name must be a string",
|
||||
|
||||
@@ -11,7 +11,7 @@ const insertTagsSchema = Joi.object({
|
||||
is_active: Joi.boolean().optional(),
|
||||
data_type: Joi.string().max(50).optional(),
|
||||
unit: Joi.string().max(50).optional(),
|
||||
sub_section_id: Joi.number().optional(),
|
||||
plant_sub_section_id: Joi.number().optional(),
|
||||
is_alarm: Joi.boolean().optional(),
|
||||
is_report: Joi.boolean().optional(),
|
||||
is_history: Joi.boolean().optional(),
|
||||
@@ -29,7 +29,7 @@ const updateTagsSchema = Joi.object({
|
||||
data_type: Joi.string().max(50),
|
||||
unit: Joi.string().max(50),
|
||||
is_alarm: Joi.boolean().optional(),
|
||||
sub_section_id: Joi.number().optional(),
|
||||
plant_sub_section_id: Joi.number().optional(),
|
||||
is_report: Joi.boolean().optional(),
|
||||
is_history: Joi.boolean().optional(),
|
||||
lim_low_crash: Joi.number().optional(),
|
||||
|
||||
Reference in New Issue
Block a user