From 4a722fc28e0df7ab0404d93585b701b97ebf10b4 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Tue, 6 Aug 2024 16:21:38 +0700 Subject: [PATCH] include reqid label di dump webhook --- lib/webhook-sender.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webhook-sender.js b/lib/webhook-sender.js index 1a20f39..1ca7f55 100644 --- a/lib/webhook-sender.js +++ b/lib/webhook-sender.js @@ -37,7 +37,7 @@ const dumper = async (xid, webhookType, body) => { const filename = [ [moment().format('YYYYMMDD-HHmmssSSS'), xid].join('_'), webhookType, - body.request_id, + body.request_id && ['reqid', body.request_id].join('_'), 'json', ].filter((item) => item).join('.'); -- 1.9.0