Skip to content

Commit

Permalink
🐛 Remove comments; Require URL
Browse files Browse the repository at this point in the history
  • Loading branch information
w3cj committed May 15, 2018
1 parent ba876ad commit b55ce11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion server/db/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const schema = Joi.object().keys({
scheme: [
/https?/
]
})
}).required()
}).with('name', 'url');

function find(name) {
Expand Down
3 changes: 0 additions & 3 deletions server/public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@ new Vue({
'content-type': 'application/json'
}
}).then(response => {
console.log(response);
return response.json();
}).then(result => {
if (result.isJoi) {
// there was an error! show it!
this.error = result.details.map(detail => detail.message).join('. ');
console.log(this.error);
} else {
this.success = true;
}
Expand Down

0 comments on commit b55ce11

Please sign in to comment.