File tree 1 file changed +3
-6
lines changed
src/main/java/ru/mystamps/web/feature/series
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,11 @@ public class SeriesServiceImpl implements SeriesService {
60
60
@ PreAuthorize (HasAuthority .CREATE_SERIES )
61
61
public Integer add (AddSeriesDto dto , Integer userId , boolean userCanAddComments ) {
62
62
Validate .isTrue (dto != null , "DTO must be non null" );
63
- Validate .isTrue (dto .getQuantity () != null , "Stamps quantity must be non null" );
64
- Validate .isTrue (
65
- dto .getPerforated () != null ,
66
- "Stamps perforated property must be non null"
67
- );
63
+ Validate .isTrue (dto .getQuantity () != null , "Quantity must be non null" );
64
+ Validate .isTrue (dto .getPerforated () != null , "Perforated property must be non null" );
68
65
Validate .isTrue (dto .getCategory () != null , "Category must be non null" );
69
66
Validate .isTrue (dto .getCategory ().getId () != null , "Category id must be non null" );
70
- Validate .isTrue (userId != null , "Current user id must be non null" );
67
+ Validate .isTrue (userId != null , "User id must be non null" );
71
68
72
69
AddSeriesDbDto series = new AddSeriesDbDto ();
73
70
You can’t perform that action at this time.
0 commit comments