mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 20:06:28 +00:00
update
This commit is contained in:
@@ -31,7 +31,7 @@ const getDongleOrder = async (req, res) => {
|
||||
|
||||
// get RO
|
||||
let getRO = await model.getRO();
|
||||
if (!getRO) {
|
||||
if (getRO.length == 0) {
|
||||
result = {
|
||||
code: "422",
|
||||
message: "data doesn't exists'",
|
||||
|
||||
@@ -10,6 +10,8 @@ const getRO = () => {
|
||||
"trx.t_d_request_order.i_request_order"
|
||||
)
|
||||
.where("trx.t_d_request_order.c_status", "!=", "X")
|
||||
.whereNotNull("trx.t_d_dongle_order.c_card_number_start")
|
||||
.whereNotNull("trx.t_d_dongle_order.c_card_number_end")
|
||||
.orderBy("trx.t_d_dongle_order.c_status", "asc");
|
||||
return result;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user