Skip to content

Commit

Permalink
Update lib/api/multiObjectDelete.js
Browse files Browse the repository at this point in the history
Co-authored-by: Seragonia <[email protected]>
  • Loading branch information
benzekrimaha and Seragonia committed Dec 8, 2023
1 parent 6577286 commit 76b8d1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/api/multiObjectDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,9 @@ function multiObjectDelete(authInfo, request, log, callback) {
// Convert authorization results into an easier to handle format
const actionImplicitDenies = authorizationResults.reduce((acc, curr, idx) => {
const apiMethod = requestContextParams[idx].apiMethod;
return Object.assign({}, acc, { [apiMethod]: curr.isImplicit });
// eslint-disable-next-line no-param-reassign
acc[apiMethod] = curr.isImplicit;
return acc;
}, {});
for (let i = 0; i < authorizationResults.length; i++) {
const result = authorizationResults[i];
Expand Down

0 comments on commit 76b8d1f

Please sign in to comment.