From 885610e2a70988caa21e9a2d6e8cd9a8be4a48c0 Mon Sep 17 00:00:00 2001 From: Patrick Michalina Date: Thu, 30 Sep 2021 18:00:28 -0500 Subject: [PATCH] fix: correclty reduce arguments (#51) --- src/soap/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soap/request.ts b/src/soap/request.ts index c16a96d..647fa65 100644 --- a/src/soap/request.ts +++ b/src/soap/request.ts @@ -120,7 +120,7 @@ export interface IXmlContainer { export const generateRequestElements = (reqNode: string) => (params: any) => { const cleanedParams = Object .keys(params) - .reduce((acc, curr) => params[curr] === undefined ? acc : { ...acc, ...params[curr] }, {}) + .reduce((acc, curr) => params[curr] === undefined ? acc : { ...acc, [curr]: params[curr] }, {}) return js2xml({ [reqNode.replace(':', '_')]: cleanedParams }, { compact: true,