Reducing the code in controller.js for adminleaveCorrection.