Skip to content

Commit 77fcb60

Browse files
authored
Fix/cart item (#242)
* feat(CartItemService): add GetUserCart , ignore query filters for better UX * fix(validation dto): remove validate status for only user
1 parent f569cca commit 77fcb60

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using FluentValidation;
22
using ShoeStore.Application.DTOs.InvoiceDTOs;
3-
using ShoeStore.Domain.Enum;
3+
44
namespace ShoeStore.Application.Validations.InvoiceValidation
55
{
66
public class UpdateStateRequestDtoValidation : AbstractValidator<UpdateStateRequestDto>
@@ -10,11 +10,6 @@ public UpdateStateRequestDtoValidation()
1010
RuleFor(x => x.Status)
1111
.IsInEnum()
1212
.WithMessage("Invalid status value");
13-
14-
// Client Only Cancel
15-
RuleFor(x => x.Status)
16-
.Must(status => status == InvoiceStatus.Cancelled)
17-
.WithMessage("You can only cancel the order");
1813
}
1914
}
2015
}

0 commit comments

Comments
 (0)