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' }; + +} + }