mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fix: parameter naming (#1899)
This commit is contained in:
parent
f846b8da18
commit
47addb31cb
@ -33,9 +33,9 @@ export const getStandardResponses = (
|
|||||||
...statusCodes: (keyof StandardResponses)[]
|
...statusCodes: (keyof StandardResponses)[]
|
||||||
): Partial<StandardResponses> =>
|
): Partial<StandardResponses> =>
|
||||||
statusCodes.reduce(
|
statusCodes.reduce(
|
||||||
(acc, n) => ({
|
(acc, statusCode) => ({
|
||||||
...acc,
|
...acc,
|
||||||
[n]: standardResponses[n],
|
[statusCode]: standardResponses[statusCode],
|
||||||
}),
|
}),
|
||||||
{} as Partial<StandardResponses>,
|
{} as Partial<StandardResponses>,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user