Commit 64bb83404fe388008973715a4b8ac0a2a4e4e4c8
1 parent
da5a6eabf8
Exists in
master
raw response
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
partner-irs.js
... | ... | @@ -64,7 +64,7 @@ function createXMLRPCServer() { |
64 | 64 | |
65 | 65 | var responseTs = strftime('%Y-%m-%d %H:%M:%S', new Date()); |
66 | 66 | var dummyTask = { requestId: value.REQUESTID }; |
67 | - pushResponseToMongoDb(dummyTask, {ts: responseTs, supplier: config.globals.gateway_name, parsed: value}); | |
67 | + pushResponseToMongoDb(dummyTask, {ts: responseTs, supplier: config.globals.gateway_name, raw: JSON.stringify(value), parsed: value}); | |
68 | 68 | |
69 | 69 | if (value['RESPONSECODE'] == '00' && config.h2h_out.parse_sn == 'YES') { |
70 | 70 | value['MESSAGE'] = 'SN=' + parseSN(value['MESSAGE']) + '; ' + value['MESSAGE']; |
... | ... | @@ -150,7 +150,7 @@ function topupRequestXMLRPC(task, retry) { |
150 | 150 | logger.info('Got XMLRPC response from partner for', {response_method: methodName, response_message: value}); |
151 | 151 | |
152 | 152 | var responseTs = strftime('%Y-%m-%d %H:%M:%S', new Date()); |
153 | - pushResponseToMongoDb(task, {ts: responseTs, supplier: config.globals.gateway_name, parsed: value}); | |
153 | + pushResponseToMongoDb(task, {ts: responseTs, supplier: config.globals.gateway_name, raw: JSON.stringify(value), parsed: value}); | |
154 | 154 | |
155 | 155 | if (value['RESPONSECODE'] == '00' && config.h2h_out.parse_sn == 'YES') { |
156 | 156 | value['MESSAGE'] = 'SN=' + parseSN(value['MESSAGE']) + '; ' + value['MESSAGE']; |