add error message output for deleting fees action

This commit is contained in:
Bilal Catic
2019-08-28 21:14:05 +02:00
parent 181e4b2cea
commit db4cb95e77

View File

@@ -151,6 +151,7 @@ const addFees = (req, res) => {
}) })
}) })
.catch((error) => { .catch((error) => {
console.log(error);
res.status(500).send(error); res.status(500).send(error);
}); });
}) })
@@ -159,6 +160,7 @@ const addFees = (req, res) => {
res.status(500).send(error); res.status(500).send(error);
}) })
}else{ }else{
console.log('Date range is missing to send fees to ORD');
res.status(400).send('Date range is missing'); res.status(400).send('Date range is missing');
} }
}; };