From 00bee542bf63bab72cb9fbe66491728f7f01dc54 Mon Sep 17 00:00:00 2001 From: varun Date: Tue, 2 May 2023 04:23:00 -0400 Subject: [PATCH] made changes in tankerbooking latitude and longitude are removed --- src/controllers/tanksController.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 528a3902..d25c4179 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -524,6 +524,7 @@ exports.calculateCapacity = async (req, reply) => { } + if(shape==="horizontalellipse"){ const { length, width, height } = req.body @@ -544,6 +545,16 @@ if(shape==="horizontalellipse"){ return { message: 'success' }; } +if(shape==="userdefined"){ + const capacity = req.body + + reply.send({ status_code: 200, capacity: capacity}); + + + return { message: 'success' }; + +} + }