fix(dal): tbl robotHistoryLavel fix information
This commit is contained in:
@@ -9,8 +9,8 @@ namespace PARR.API.Validators
|
||||
public RobotHistoryRequestValidator()
|
||||
{
|
||||
RuleFor(r => r.HistoryLevel)
|
||||
.Must(t => t == RobotHistoryLevelEnum.Inforamtion || t == RobotHistoryLevelEnum.Error)
|
||||
.WithMessage($"Допустимые значения: {(int)RobotHistoryLevelEnum.Inforamtion}, {(int)RobotHistoryLevelEnum.Error}");
|
||||
.Must(t => t == RobotHistoryLevelEnum.Information || t == RobotHistoryLevelEnum.Error)
|
||||
.WithMessage($"Допустимые значения: {(int)RobotHistoryLevelEnum.Information}, {(int)RobotHistoryLevelEnum.Error}");
|
||||
|
||||
RuleFor(r => r.TaskId).NotNull().NotEmpty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user