Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
andersrognstad committed Jun 3, 2024
1 parent ec85364 commit a9b13ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions mock/mockEndepunkter.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import express from "express";
import express, { RequestHandler } from "express";

import mockFastlegerest from "./mockFastlegerest";
import mockModiacontextholder from "./mockModiacontextholder";
import mockSyfoperson from "./mockSyfoperson";
import mockIstilgangskontroll from "./mockIstilgangskontroll";

const mockEndepunkter = (server: express.Application) => {
server.use(express.json());
server.use(express.urlencoded());
server.use(express.json() as RequestHandler);
server.use(express.urlencoded() as RequestHandler);

[
mockFastlegerest,
Expand Down
4 changes: 2 additions & 2 deletions server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import express from "express";
import express, { RequestHandler } from "express";
import path from "path";
import prometheus from "prom-client";

Expand All @@ -12,7 +12,7 @@ const collectDefaultMetrics = prometheus.collectDefaultMetrics;
collectDefaultMetrics({});

const server = express();
server.use(express.json());
server.use(express.json() as RequestHandler);

const nocache = (
req: express.Request,
Expand Down

0 comments on commit a9b13ae

Please sign in to comment.