Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #82 from bridgecrewio/trim-trailing-url-slash
Browse files Browse the repository at this point in the history
trim trailing slash in prisma API URL
  • Loading branch information
mikeurbanski1 authored Oct 7, 2024
2 parents c46548b + b890143 commit f917251
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/config/configUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ export const getToken = (): string | undefined => {
};

export const getPrismaApiUrl = (): string | undefined => {
const prismaURL = CONFIG.userConfig[USER_CONFIGURATION_PARAM.PRISMA_URL];
let prismaURL: string = CONFIG.userConfig[USER_CONFIGURATION_PARAM.PRISMA_URL];
if (prismaURL?.endsWith('/')) {
prismaURL = prismaURL.substring(0, prismaURL.length - 1);
}
return prismaURL;
};

Expand Down

0 comments on commit f917251

Please sign in to comment.