Skip to content

Commit

Permalink
fix flattening of objects from importParams
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Jun 17, 2023
1 parent 8aba5bc commit 27710e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routes/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const generateOperationId = require("./generateOperationId");
const { redisCount, countPeers, isContributor, matchupToString } = utility;
const { subkeys, countCats } = playerFields;

const parameters = Object.entries(params).reduce((acc, [key, param]) => {
acc[key] = param;
return acc;
}, {});
const parameters = Object.values(params).reduce(
(acc, category) => ({ ...acc, ...category }),
{}
);

const playerParamNames = [
"accountIdParam",
Expand Down

0 comments on commit 27710e3

Please sign in to comment.