made changes in tanker controller

master
varun 3 years ago
parent bbd3db023e
commit c8b54ee6cf

@ -187,10 +187,7 @@ 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) => {
console.log(err);
reply.send({ error: err });
});
} catch (err) { } catch (err) {
throw boom.boomify(err); throw boom.boomify(err);
} }

Loading…
Cancel
Save