mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 17:36:27 +00:00
Merge branch 'develop_v1.4.8'
This commit is contained in:
@@ -75,10 +75,14 @@ const loginPartnerUser = async (req, res, next) => {
|
||||
let { email, password } = req.body;
|
||||
|
||||
// log info
|
||||
winston.logger.info(
|
||||
`${uniqueCode} [ REQUEST LOGIN-PARTNER-USER ]: ${JSON.stringify({
|
||||
email: email,
|
||||
})}`
|
||||
// winston.logger.info(
|
||||
// `${uniqueCode} [ REQUEST LOGIN-PARTNER-USER ]: ${JSON.stringify({
|
||||
// email: email,
|
||||
// })}`
|
||||
// );
|
||||
|
||||
console.log(
|
||||
`${uniqueCode} [ REQUEST LOGIN-PARTNER-USER ]: ${JSON.stringify(result)}`
|
||||
);
|
||||
|
||||
// validate
|
||||
@@ -201,9 +205,9 @@ const loginPartnerUser = async (req, res, next) => {
|
||||
};
|
||||
|
||||
// log info
|
||||
winston.logger.info(
|
||||
`${uniqueCode} [ RESPONSE LOGIN-PARTNER-USER ]: ${JSON.stringify(result)}`
|
||||
);
|
||||
// winston.logger.info(
|
||||
// `${uniqueCode} [ RESPONSE LOGIN-PARTNER-USER ]: ${JSON.stringify(result)}`
|
||||
// );
|
||||
|
||||
return res.status(200).json(result);
|
||||
} catch (error) {
|
||||
@@ -705,11 +709,11 @@ const refreshTokenPartnerUser = async (req, res) => {
|
||||
let refresh_token = req.header('refresh_token');
|
||||
|
||||
// log info
|
||||
winston.logger.info(
|
||||
`${uniqueCode} [ REQUEST REFRESH-TOKEN-PARTNER-USER ]: ${JSON.stringify(
|
||||
req.body
|
||||
)}`
|
||||
);
|
||||
// winston.logger.info(
|
||||
// `${uniqueCode} [ REQUEST REFRESH-TOKEN-PARTNER-USER ]: ${JSON.stringify(
|
||||
// req.body
|
||||
// )}`
|
||||
// );
|
||||
|
||||
// validate
|
||||
let err = validationResult(req);
|
||||
@@ -837,11 +841,11 @@ const refreshTokenPartnerUser = async (req, res) => {
|
||||
};
|
||||
|
||||
// log info
|
||||
winston.logger.info(
|
||||
`${uniqueCode} [ RESPONSE REFRESH-TOKEN-PARTNER-USER ]: ${JSON.stringify(
|
||||
result
|
||||
)}`
|
||||
);
|
||||
// winston.logger.info(
|
||||
// `${uniqueCode} [ RESPONSE REFRESH-TOKEN-PARTNER-USER ]: ${JSON.stringify(
|
||||
// result
|
||||
// )}`
|
||||
// );
|
||||
|
||||
return res.status(200).json(result);
|
||||
} catch (error) {
|
||||
|
||||
@@ -410,6 +410,7 @@ const getPartnerRecon = async (trx) => {
|
||||
.where('tdpr.c_status', '=', 'S')
|
||||
.whereNotNull('tdi.c_return_sap')
|
||||
.whereNotNull('tdrb.c_load_balance_no')
|
||||
.whereNull('tdrb.c_cash_in_no')
|
||||
.groupBy([
|
||||
'tdpr.c_partner_code',
|
||||
'tdrb.c_partner_name',
|
||||
|
||||
Reference in New Issue
Block a user