From 266182a66b1ee1d5da9330f6f36e3503223cc35a Mon Sep 17 00:00:00 2001 From: thomasridd Date: Mon, 19 Feb 2024 15:15:03 +0000 Subject: [PATCH] simplify grantType --- server/mappers/baseClientApi/getBaseClient.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/mappers/baseClientApi/getBaseClient.ts b/server/mappers/baseClientApi/getBaseClient.ts index 02c3058f..4b38668e 100644 --- a/server/mappers/baseClientApi/getBaseClient.ts +++ b/server/mappers/baseClientApi/getBaseClient.ts @@ -10,10 +10,7 @@ export default (response: GetBaseClientResponse): BaseClient => { baseClientId: response.clientId, accessTokenValidity: response.accessTokenValidityMinutes ? response.accessTokenValidityMinutes * 60 : 0, scopes: response.scopes ? response.scopes : [], - grantType: - snake(response.grantType) === GrantTypes.ClientCredentials - ? GrantTypes.ClientCredentials - : GrantTypes.AuthorizationCode, + grantType: snake(response.grantType), audit: response.jiraNumber ? response.jiraNumber : '', count: 1, clientCredentials: {