Add logging in addFees steps

This commit is contained in:
Bilal Catic
2019-10-04 16:54:12 +02:00
parent ca55bf83af
commit fc662b73a6
7 changed files with 211 additions and 181 deletions

View File

@@ -147,28 +147,22 @@ const addFees = (req, res) => {
});
})
.catch((error) => {
console.log('Error reformatting memberships name');
console.log(error);
res.status(500).send(error);
})
})
.catch((error) => {
console.log('Error adding fees');
res.status(500).send(error);
})
})
.catch((error) => {
console.log(error);
res.status(500).send(error);
})
})
.catch((error) => {
console.log(error);
res.status(500).send(error);
});
})
.catch((error) => {
console.log('Error with updating booking reservations');
res.status(500).send(error);
})
}else{