mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 11:06:28 +00:00
Merge branch 'main' of https://github.com/mohamadihsan/topuponline into nuranggi
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
"auditLog": ".71c131f2ce727b13210eef32232709400762e5fb-audit.json",
|
||||
"files": [
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
"date": 1658058933806,
|
||||
"name": "2022-07-17-onlinetopup.log",
|
||||
"hash": "7852c140cf98ff5400225c1fdabf684b9fe54ff7c0a284e9d161c9fde627c345"
|
||||
@@ -14,6 +15,11 @@
|
||||
"date": 1658117687023,
|
||||
"name": "2022-07-18-onlinetopup.log",
|
||||
"hash": "9f8fd348745fed588de396f154da89bb07ae46fdc2a4677333ddf84418363b9c"
|
||||
=======
|
||||
"date": 1658097118958,
|
||||
"name": "2022-07-18-onlinetopup.log",
|
||||
"hash": "29064ceb265b9682d0ff06a6ec035727282857bb2e0728da58d94250fef332b8"
|
||||
>>>>>>> 9f19ed21dbb647d6b8c80e76383a76c2663b2dce
|
||||
}
|
||||
],
|
||||
"hashType": "sha256"
|
||||
|
||||
@@ -3,7 +3,7 @@ const knex = require("../../../infrastructure/database/knex");
|
||||
// GET RO
|
||||
const getRO = (year) => {
|
||||
let result = knex("trx.t_d_dongle_order")
|
||||
.select("trx.t_d_dongle_order.*")
|
||||
.select("trx.t_d_request_order.c_po_number", "trx.t_d_dongle_order.*")
|
||||
.leftJoin(
|
||||
"trx.t_d_request_order",
|
||||
"trx.t_d_dongle_order.i_request_order",
|
||||
|
||||
@@ -18,9 +18,10 @@ require("dotenv").config();
|
||||
const app = express();
|
||||
|
||||
var corsOptions = {
|
||||
origin: "http://localhost:" + process.env.PORT || 8000,
|
||||
origin: ["http://localhost:" + process.env.PORT || 8000, "http://localhost:3000"],
|
||||
};
|
||||
|
||||
// app.use(cors(corsOptions));
|
||||
app.use(cors(corsOptions));
|
||||
|
||||
// parse requests of content-type - application/json
|
||||
|
||||
Reference in New Issue
Block a user