fix(dal): tbl robotHistoryLavel fix information

This commit is contained in:
Mikhail Trubnikov
2024-01-30 14:04:03 +10:00
parent 30765f618b
commit 56e8477bf1
6 changed files with 2909 additions and 5 deletions

View File

@@ -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();
}