Skip to content

Commit

Permalink
style(cmd-api-server): fix any linter in getOrCreateWebServices()
Browse files Browse the repository at this point in the history
Signed-off-by: D.Yogesh <[email protected]>
  • Loading branch information
Yogesh01000100 authored and petermetz committed Oct 10, 2023
1 parent 9e66850 commit be4bf18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ export class ApiServer {
const { "/api/v1/api-server/healthcheck": oasPath } = OAS.paths;
const { http } = oasPath.get["x-hyperledger-cactus"];
const { path: httpPath, verbLowerCase: httpVerb } = http;
(app as any)[httpVerb](httpPath, healthcheckHandler);
(app as express.Express)[httpVerb as keyof express.Express](httpPath, healthcheckHandler);

this.wsApi.on("connection", (socket: SocketIoSocket) => {
const { id } = socket;
Expand Down Expand Up @@ -628,7 +628,7 @@ export class ApiServer {
oasPathPrometheus.get["x-hyperledger-cactus"];
const { path: httpPathPrometheus, verbLowerCase: httpVerbPrometheus } =
httpPrometheus;
(app as any)[httpVerbPrometheus](
(app as express.Express)[httpVerbPrometheus as keyof express.Express](
httpPathPrometheus,
prometheusExporterHandler,
);
Expand Down

0 comments on commit be4bf18

Please sign in to comment.