From 2119425ea01d629d0e528b15a456d737b3e6fe65 Mon Sep 17 00:00:00 2001 From: Derek Wolpert Date: Wed, 4 Jan 2023 18:58:52 -0500 Subject: [PATCH] lint adjustment for updated json formatted log statements --- api-service/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api-service/index.js b/api-service/index.js index 47720e4..ebb4b87 100644 --- a/api-service/index.js +++ b/api-service/index.js @@ -12,10 +12,10 @@ app.use(cors()) app.use(express.json()) app.use(morgan((tokens, req, res) => JSON.stringify({ - method: tokens['method'](req, res), - url: tokens['url'](req, res), - status: tokens['status'](req, res), - 'content-length': tokens['res'](req, res, 'content-length'), + method: tokens.method(req, res), + url: tokens.url(req, res), + status: tokens.status(req, res), + 'content-length': tokens.res(req, res, 'content-length'), 'response-time': `${tokens['response-time'](req, res)} ms` }) ))