specs for donors model

This commit is contained in:
Arjun Patel
2019-01-12 14:03:34 -08:00
parent ec2a3b5362
commit 43bf237942
3 changed files with 56 additions and 36 deletions
+1 -8
View File
@@ -18,10 +18,7 @@ exports.create = (req, res) => {
});
} else {
// hash and store
bcrypt.hash(req.body.password, null, null, function(
error,
hash
) {
bcrypt.hash(req.body.password, null, null, function(error, hash) {
// Store hash in your password DB.
if (error) {
return res.status(500).json({
@@ -49,8 +46,6 @@ exports.create = (req, res) => {
});
})
.catch(error => {
console.log(error);
return res.status(500).json({
error
});
@@ -60,8 +55,6 @@ exports.create = (req, res) => {
}
})
.catch(error => {
console.log(error);
return res.status(500).json({
error
});