Skip to content

Commit 10626fa

Browse files
committed
Object.assign removed
1 parent 27dd081 commit 10626fa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/dynamics-web-api-callbacks.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,9 @@ function DynamicsWebApi(config) {
15801580
successCallback(response.data);
15811581
};
15821582

1583-
_makeRequest('POST', Object.assign(request, { collection: '$batch' }), 'executeBatch', onSuccess, errorCallback);
1583+
request.collection = '$batch';
1584+
1585+
_makeRequest('POST', request, 'executeBatch', onSuccess, errorCallback);
15841586
};
15851587

15861588
/**

lib/dynamics-web-api.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1400,8 +1400,10 @@ function DynamicsWebApi(config) {
14001400
ErrorHelper.parameterCheck(request, 'DynamicsWebApi.executeBatch', 'request');
14011401
ErrorHelper.batchNotStarted(_isBatch);
14021402

1403+
request.collection = '$batch';
1404+
14031405
_isBatch = false;
1404-
return _makeRequest('POST', Object.assign(request, { collection: '$batch' }), 'executeBatch')
1406+
return _makeRequest('POST', request, 'executeBatch')
14051407
.then(function (response) {
14061408
return response.data;
14071409
});

0 commit comments

Comments
 (0)