Skip to content

Commit

Permalink
converting api version vars naming to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
Junjiequan committed Sep 19, 2024
1 parent 75ed503 commit 55329e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/config/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ const configuration = () => {
});

const config = {
VERSIONS: {
API: "v3",
versions: {
api: "v3",
},
swaggerPath: process.env.SWAGGER_PATH || "explorer",
loggerConfigs: jsonConfigMap.loggers || [defaultLogger],
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function bootstrap() {
const configService: ConfigService<Record<string, unknown>, false> = app.get(
ConfigService,
);
const apiVersion = configService.get<string>("VERSIONS.API");
const apiVersion = configService.get<string>("versions.api");
const swaggerPath = `${configService.get<string>("swaggerPath")}`;

const scicatLogger = app.get<ScicatLogger>(ScicatLogger);
Expand Down

0 comments on commit 55329e7

Please sign in to comment.