Skip to content

Commit

Permalink
fix SaveProduct validation for new product
Browse files Browse the repository at this point in the history
  • Loading branch information
robsmitha committed Sep 1, 2024
1 parent 4f008f4 commit 9641164
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public SaveProductCommandValidator(ElysianContext context)
.WithMessage("The serial number must be unique. The provided serial number already exists in the system");

RuleFor(v => v.SaveProductRequest.ProductId)
.NotEmpty()
.MustAsync(BeValidProductId)
.WithMessage("No matching record found. The ID may be incorrect, or the record has been deleted.");
}
Expand Down

0 comments on commit 9641164

Please sign in to comment.