Commit 915aaeeea0ac24c1912f28a024e1df11c76d31b2
1 parent
b03368dab3
Exists in
master
include request id di dump webhook
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
lib/webhook-sender.js
... | ... | @@ -37,8 +37,10 @@ const dumper = async (xid, webhookType, body) => { |
37 | 37 | const filename = [ |
38 | 38 | [moment().format('YYYYMMDD-HHmmssSSS'), xid].join('_'), |
39 | 39 | webhookType, |
40 | + body.request_id, | |
40 | 41 | 'json', |
41 | - ].join('.'); | |
42 | + ].filter((item) => item).join('.'); | |
43 | + | |
42 | 44 | await fs.promises.writeFile( |
43 | 45 | path.join(baseDumpDir, filename), |
44 | 46 | stringify({ webhookType, body }), |