diff --git a/backend/controller/returnController.js b/backend/controller/returnController.js index 61f0ac9..b0198eb 100644 --- a/backend/controller/returnController.js +++ b/backend/controller/returnController.js @@ -17,6 +17,8 @@ const getReturn = async (req, res) => { return sendResponse(res, {}, 400); } return sendResponse(res, cabinetInfo, 200); + } catch (err) { + return sendResponse(res, {}, 500); } finally { connection.release(); }