made changes in tanker controller

master
varun 3 years ago
parent 9b2ceca8d8
commit 0446f665c8

@ -187,10 +187,16 @@ exports.getTankersBookingdetails = async (req, reply) => {
.then((docs) => { .then((docs) => {
reply.send({ status_code: 200, data: docs, count: docs.length }); reply.send({ status_code: 200, data: docs, count: docs.length });
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);
reply.send({ error: err }); reply.send({ error: err });
}); });
} catch (err) { } catch (err) {
throw boom.boomify(err); throw boom.boomify(err);

Loading…
Cancel
Save