diff --git a/packages/nocodb/src/lib/meta/helpers/apiMetrics.ts b/packages/nocodb/src/lib/meta/helpers/apiMetrics.ts index d78623d901..82c6a0c32b 100644 --- a/packages/nocodb/src/lib/meta/helpers/apiMetrics.ts +++ b/packages/nocodb/src/lib/meta/helpers/apiMetrics.ts @@ -3,6 +3,7 @@ import { Tele } from 'nc-help'; const countMap = {}; +// @ts-ignore const metrics = async (req: Request, c = 150) => { if (!req?.route?.path) return; const event = `a:api:${req.route.path}:${req.method}`; @@ -13,12 +14,12 @@ const metrics = async (req: Request, c = 150) => { } }; -const metaApiMetrics = (req: Request, _res, next) => { - metrics(req, 50).then(() => {}); +const metaApiMetrics = (_req: Request, _res, next) => { + // metrics(req, 50).then(() => {}); next(); }; -export default (req: Request, _res, next) => { - metrics(req).then(() => {}); +export default (_req: Request, _res, next) => { + // metrics(req).then(() => {}); next(); };