fix customerdata should not be snakeCase

This commit is contained in:
Quan HL
2023-07-27 21:59:47 +07:00
parent 7e3911d786
commit 702948715d
6 changed files with 31 additions and 6 deletions

View File

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