From e9e4f437c50b45dc98f0c83aee0c6a9e21e22e9b Mon Sep 17 00:00:00 2001 From: Nevil Date: Tue, 20 Feb 2024 13:53:34 +0530 Subject: [PATCH] fixed an issue with index --- src/routes/index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/routes/index.js b/src/routes/index.js index 8399d9c8..fce316a5 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -107,15 +107,9 @@ module.exports = (app) => { responseCode, error: errorData, meta: { correlation: correlationId.getId() }, + message, } - const interpolationOptions = { - ...error?.interpolation, - interpolation: { escapeValue: false }, - } - - options.message = error.interpolation ? req.t(message, interpolationOptions) : req.t(message) - res.status(status).json(options) } else { // Limited info response