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

Commit

Permalink
trim trailing slash in prisma API URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeurbanski1 committed Oct 2, 2024
1 parent c46548b commit c9caac9
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 c9caac9

Please sign in to comment.