From 1caeb6d57ce3db55fa7a120ae41aa0d1508df84d Mon Sep 17 00:00:00 2001 From: Samarpan Harit Date: Tue, 10 Sep 2024 22:42:05 +0530 Subject: [PATCH] chore: remove feature flag for GET /logs API --- controllers/logs.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/controllers/logs.js b/controllers/logs.js index f5d0e49ac..fa054e195 100644 --- a/controllers/logs.js +++ b/controllers/logs.js @@ -25,16 +25,13 @@ const fetchLogs = async (req, res) => { const fetchAllLogs = async (req, res) => { const { query } = req; try { - if (query.dev !== "true") { - return res.boom.badRequest("Please use feature flag to make this request!"); - } const logs = await logsQuery.fetchAllLogs(query); if (logs.length === 0) { return res.status(204).send(); } const { allLogs, next, prev, page } = logs; if (page) { - const pageLink = `/logs?page=${page}&dev=${query.dev}`; + const pageLink = `/logs?page=${page}`; return res.status(200).json({ message: ALL_LOGS_FETCHED_SUCCESSFULLY, data: allLogs,