Skip to content

Commit 7069f9f

Browse files
committed
chore: fix typescript error
1 parent 1d6a3a8 commit 7069f9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/proxy/routes/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ const getRouter = async () => {
233233

234234
console.log('proxy keys registered: ', JSON.stringify(proxyKeys));
235235

236-
router.use('/', (req, res, next) => {
236+
router.use('/', ((req, res, next) => {
237237
if (req.path === '/healthcheck') {
238238
res.set('Cache-Control', 'no-cache, no-store, must-revalidate, proxy-revalidate');
239239
res.set('Pragma', 'no-cache');
@@ -255,7 +255,7 @@ const getRouter = async () => {
255255
// fallback
256256
console.log(`\tusing fallback`);
257257
return fallbackProxy(req, res, next);
258-
});
258+
}) as RequestHandler);
259259
return router;
260260
};
261261

0 commit comments

Comments
 (0)