1
0
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:
Fredrik Strand Oseberg 2022-08-09 13:13:05 +02:00 committed by GitHub
parent f846b8da18
commit 47addb31cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,9 +33,9 @@ export const getStandardResponses = (
...statusCodes: (keyof StandardResponses)[]
): Partial<StandardResponses> =>
statusCodes.reduce(
(acc, n) => ({
(acc, statusCode) => ({
...acc,
[n]: standardResponses[n],
[statusCode]: standardResponses[statusCode],
}),
{} as Partial<StandardResponses>,
);