From 5fbb6b1f0440a7a7a08a6b0557a33ef9912ed125 Mon Sep 17 00:00:00 2001 From: Mohamad Ihsan Date: Thu, 19 May 2022 16:21:12 +0700 Subject: [PATCH] update --- .../modules/reservebalance/reservebalance.controller.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/modules/reservebalance/reservebalance.controller.js b/application/modules/reservebalance/reservebalance.controller.js index 67acc3a..d38d614 100644 --- a/application/modules/reservebalance/reservebalance.controller.js +++ b/application/modules/reservebalance/reservebalance.controller.js @@ -295,12 +295,13 @@ const updatePayment = async (req, res) => { c_modify_username: null, c_modify_fullname: null, }; - let result = await model.updatePayment(data, reservation_number); + + await model.updatePayment(data, reservation_number); return res.json({ code: "00", message: "payment updated successfully.", - data: result, + data: {}, }); } catch (error) { return res.status(500).json({