Skip to content

Commit

Permalink
fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldisaro committed Oct 28, 2024
1 parent 451c9c2 commit fa3dc20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1206,10 +1206,7 @@ function registerCgnOperatorSearchAPIRoutes(
app.post(
`${basePath}/search`,
bearerSessionTokenAuth,
toExpressHandler(
cgnOperatorController.search,
cgnOperatorController
)
toExpressHandler(cgnOperatorController.search, cgnOperatorController)
);

app.post(
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/cgnOperatorSearchController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import * as E from "fp-ts/Either";
import { DiscountBucketCode } from "generated/io-cgn-operator-search-api/DiscountBucketCode";
import { Card } from "generated/cgn/Card";
import { pipe } from "fp-ts/lib/function";
import { SearchResult } from "generated/io-cgn-operator-search-api/SearchResult";
import { Merchant } from "../../generated/cgn-operator-search/Merchant";
import { OfflineMerchants } from "../../generated/cgn-operator-search/OfflineMerchants";
import { OnlineMerchants } from "../../generated/cgn-operator-search/OnlineMerchants";
Expand All @@ -31,7 +32,6 @@ import { SearchRequest } from "../../generated/io-cgn-operator-search-api/Search
import CgnOperatorSearchService from "../services/cgnOperatorSearchService";
import { User, withUserFromRequest } from "../types/user";
import { withValidatedOrValidationError } from "../utils/responses";
import { SearchResult } from "generated/io-cgn-operator-search-api/SearchResult";

export default class CgnOperatorSearchController {
constructor(
Expand Down
4 changes: 2 additions & 2 deletions src/services/cgnOperatorSearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import { IResponseType } from "@pagopa/ts-commons/lib/requests";
import { DiscountBucketCode } from "generated/io-cgn-operator-search-api/DiscountBucketCode";
import { PublishedProductCategoriesResult } from "generated/io-cgn-operator-search-api/PublishedProductCategoriesResult";
import { GetPublishedCategoriesParameters } from "generated/parameters/GetPublishedCategoriesParameters";
import { SearchRequest } from "generated/io-cgn-operator-search-api/SearchRequest";
import { SearchResult } from "generated/io-cgn-operator-search-api/SearchResult";
import { Merchant } from "../../generated/cgn-operator-search/Merchant";
import {
ResponseErrorStatusNotDefinedInSpec,
Expand All @@ -29,8 +31,6 @@ import { OnlineMerchantSearchRequest } from "../../generated/io-cgn-operator-sea
import { OnlineMerchants } from "../../generated/cgn-operator-search/OnlineMerchants";
import { OfflineMerchantSearchRequest } from "../../generated/io-cgn-operator-search-api/OfflineMerchantSearchRequest";
import { OfflineMerchants } from "../../generated/cgn-operator-search/OfflineMerchants";
import { SearchRequest } from "generated/io-cgn-operator-search-api/SearchRequest";
import { SearchResult } from "generated/io-cgn-operator-search-api/SearchResult";

type ClientResponses<T> =
| IResponseType<200, T>
Expand Down

0 comments on commit fa3dc20

Please sign in to comment.