Compare commits

...

4 Commits

Author SHA1 Message Date
ihsan bbdb4c2963 add static file 2024-01-29 13:19:42 +07:00
ihsan 33f3b64d17 Merge branch 'develop_v1.4.9' of https://github.com/mohamadihsan/topuponline 2024-01-24 19:17:02 +07:00
ihsan e3673f738c update 2024-01-15 14:21:47 +07:00
ihsan f7d7d0efce add debug 2024-01-15 14:14:39 +07:00
7 changed files with 16 additions and 1 deletions
@@ -216,9 +216,21 @@ const checkReservation = async (req, res) => {
result = {
code: '412',
message: 'partner is not match',
data: {},
data: {
body: req.body,
partner_id_token: req.partner_id_token,
partner_user_id_token: req.partner_user_id_token,
headers: req.headers,
},
};
// log warn
winston.logger.warn(
`${uniqueCode} [ RESPONSE RESERVATION-CHECK ]: ${JSON.stringify(
result
)}`
);
return res.status(200).json(result);
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

+3
View File
@@ -51,6 +51,9 @@ var corsOptions = {
// app.use(cors(corsOptions));
app.use(cors(corsOptions));
// add static file
app.use(express.static('public'));
// parse requests of content-type - application/json
app.use(bodyParser.json());