From 6e0627fb86ae7064c3374209f2b475e8d427f7f3 Mon Sep 17 00:00:00 2001 From: Mohamad Ihsan Date: Mon, 20 Feb 2023 22:34:40 +0700 Subject: [PATCH] update --- application/modules/loadbalance/loadbalance.controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/modules/loadbalance/loadbalance.controller.js b/application/modules/loadbalance/loadbalance.controller.js index 7b85981..3bba73f 100644 --- a/application/modules/loadbalance/loadbalance.controller.js +++ b/application/modules/loadbalance/loadbalance.controller.js @@ -1257,7 +1257,9 @@ const loadingBalanceInsert = async (param) => { for (let index = 0; index < getReservationPending.length; index++) { reservation_number.push(getReservationPending.c_reservation_no); - let reservation = await model.findReservation(reservation_number[index]); + let reservation = await model.findReservation( + getReservationPending.reservation_number + ); if (!reservation) { result = {