Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MalpenZibo committed Jun 17, 2024
1 parent 0c6e0e6 commit af95ab8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/bff/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from "pagopa-interop-commons";
import healthRouter from "./routers/HealthRouter.js";
import genericRouter from "./routers/genericRouter.js";
// import catalogRouter from "./routers/catalogRouter.js";
import catalogRouter from "./routers/catalogRouter.js";
import attributeRouter from "./routers/attributeRouter.js";
import purposeRouter from "./routers/purposeRouter.js";
import agreementRouter from "./routers/agreementRouter.js";
Expand All @@ -27,7 +27,7 @@ app.use(healthRouter);
app.use(authenticationMiddleware);
app.use(loggerMiddleware(serviceName));
app.use(genericRouter(zodiosCtx));
// app.use(catalogRouter(zodiosCtx, clients));
app.use(catalogRouter(zodiosCtx, clients));
app.use(attributeRouter(zodiosCtx));
app.use(purposeRouter(zodiosCtx, clients));
app.use(agreementRouter(zodiosCtx));
Expand Down
2 changes: 1 addition & 1 deletion packages/bff/src/providers/clientProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createApiClient as createApiClientAttributeProcess } from "../model/gen
import { createApiClient as createApiClientPurposeProcess } from "../model/generated/purpose-process/api.js";
import { config } from "../utilities/config.js";

export type Headers = { "X-Correlation-Id": string, Authorization: string };
export type Headers = { "X-Correlation-Id": string; Authorization: string };

export type PagoPaClients = {
tenantProcessClient: ReturnType<typeof createApiClientTenantProcess>;
Expand Down
1 change: 0 additions & 1 deletion packages/bff/src/utilities/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ const BffProcessConfig = CommonHTTPServiceConfig.and(TenantProcessServerConfig)
export type BffProcessConfig = z.infer<typeof BffProcessConfig>;

export const config: BffProcessConfig = BffProcessConfig.parse(process.env);

0 comments on commit af95ab8

Please sign in to comment.