Removed redundant code and added error messages
This commit is contained in:
parent
662219fc6e
commit
9cfd5536b9
2 changed files with 70 additions and 19 deletions
|
@ -79,7 +79,6 @@ has error_messages => sub {
|
|||
required => { message => 'search_name is missing', status => 400 },
|
||||
},
|
||||
postcode => {
|
||||
required => { message => 'postcode is missing', status => 400 },
|
||||
postcode => { message => 'postcode must be valid', status => 400 },
|
||||
},
|
||||
};
|
||||
|
|
Reference in a new issue