mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 11:06:28 +00:00
change update status to in progress to last statement
This commit is contained in:
@@ -321,14 +321,6 @@ const loadingBalanceRequest = async (req, res) => {
|
||||
i++;
|
||||
});
|
||||
|
||||
// log debug
|
||||
winston.logger.debug(
|
||||
`${uniqueCode} updating status reservation to in progress...`
|
||||
);
|
||||
|
||||
// update status to in progress
|
||||
await model.updateStatusReservation(reservationNumberTemp, now);
|
||||
|
||||
totalReservation = i;
|
||||
if (totalReservation == 0) {
|
||||
result = {
|
||||
@@ -442,6 +434,14 @@ const loadingBalanceRequest = async (req, res) => {
|
||||
}
|
||||
}
|
||||
|
||||
// log debug
|
||||
winston.logger.debug(
|
||||
`${uniqueCode} updating status reservation to in progress...`
|
||||
);
|
||||
|
||||
// update status to in progress
|
||||
await model.updateStatusReservation(reservationNumberTemp, now);
|
||||
|
||||
result = {
|
||||
code: '00',
|
||||
message: 'reservation exists',
|
||||
|
||||
Reference in New Issue
Block a user