From daf41ef2e5c3b8ee0ba6f122225a76f3409aa034 Mon Sep 17 00:00:00 2001 From: Tom Ridd Date: Fri, 23 Feb 2024 15:11:28 +0000 Subject: [PATCH] change put/post grantType requests to snake case (#77) --- server/mappers/baseClientApi/addBaseClient.ts | 4 ++-- server/mappers/baseClientApi/updateBaseClient.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/mappers/baseClientApi/addBaseClient.ts b/server/mappers/baseClientApi/addBaseClient.ts index 6a6ea3d0..f65f3a56 100644 --- a/server/mappers/baseClientApi/addBaseClient.ts +++ b/server/mappers/baseClientApi/addBaseClient.ts @@ -1,6 +1,6 @@ import { BaseClient } from '../../interfaces/baseClientApi/baseClient' import { AddBaseClientRequest } from '../../interfaces/baseClientApi/baseClientRequestBody' -import { daysRemaining, snakeUpper } from '../../utils/utils' +import { daysRemaining } from '../../utils/utils' export default (baseClient: BaseClient): AddBaseClientRequest => { return { @@ -12,7 +12,7 @@ export default (baseClient: BaseClient): AddBaseClientRequest => { databaseUserName: baseClient.clientCredentials.databaseUserName, validDays: baseClient.config.expiryDate ? daysRemaining(baseClient.config.expiryDate) : null, accessTokenValidityMinutes: baseClient.accessTokenValidity ? baseClient.accessTokenValidity / 60 : null, - grantType: snakeUpper(baseClient.grantType), + grantType: baseClient.grantType, mfa: baseClient.authorisationCode.mfa, mfaRememberMe: baseClient.authorisationCode.mfaRememberMe, jwtFields: baseClient.authorisationCode.jwtFields, diff --git a/server/mappers/baseClientApi/updateBaseClient.ts b/server/mappers/baseClientApi/updateBaseClient.ts index 21f72a2b..775120a9 100644 --- a/server/mappers/baseClientApi/updateBaseClient.ts +++ b/server/mappers/baseClientApi/updateBaseClient.ts @@ -1,6 +1,6 @@ import { BaseClient } from '../../interfaces/baseClientApi/baseClient' import { UpdateBaseClientRequest } from '../../interfaces/baseClientApi/baseClientRequestBody' -import { daysRemaining, snakeUpper } from '../../utils/utils' +import { daysRemaining } from '../../utils/utils' export default (baseClient: BaseClient): UpdateBaseClientRequest => { return { @@ -11,7 +11,7 @@ export default (baseClient: BaseClient): UpdateBaseClientRequest => { databaseUserName: baseClient.clientCredentials.databaseUserName, validDays: baseClient.config.expiryDate ? daysRemaining(baseClient.config.expiryDate) : null, accessTokenValidityMinutes: baseClient.accessTokenValidity ? baseClient.accessTokenValidity / 60 : null, - grantType: snakeUpper(baseClient.grantType), + grantType: baseClient.grantType, mfa: baseClient.authorisationCode.mfa, mfaRememberMe: baseClient.authorisationCode.mfaRememberMe, jwtFields: baseClient.authorisationCode.jwtFields,