fix customerdata should not be snakeCase

This commit is contained in:
Quan HL
2023-07-27 21:07:44 +07:00
parent 38ea9e7411
commit 4119864a35
3 changed files with 28 additions and 16 deletions

View File

@@ -87,7 +87,7 @@ class HttpRequestor extends BaseRequestor {
assert(HookMsgTypes.includes(type));
const payload = params ? snakeCaseKeys(params, ['customerData', 'sip']) : null;
const payload = params ? snakeCaseKeys(params, ['sip']) : null;
const url = hook.url || hook;
const method = hook.method || 'POST';
let buf = '';