From 153812c6e57d599f8c174050231fc104f11dc6bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Tue, 14 May 2024 09:36:59 +0200 Subject: [PATCH] simplify console log and remove unused code --- server/archive.api.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/server/archive.api.js b/server/archive.api.js index 4643e7181..36aa93429 100644 --- a/server/archive.api.js +++ b/server/archive.api.js @@ -6,21 +6,7 @@ const archive = { /* Searches for matching title, also attempts to partial match */ findBrews: async (req, res, next) => { try { - /* - //log db name and collection name, for local purposes - const dbName = HomebrewModel.db.name; - console.log("Database Name:", dbName); - const collectionName = HomebrewModel.collection.name; - console.log("Collection Name:", collectionName); - - */ - - const bright = '\x1b[1m'; // Bright (bold) style - const yellow = '\x1b[93m'; // yellow color - const reset = '\x1b[0m'; // Reset to default style - console.log( - `Query as received in ${bright + yellow}archive api${reset}:` - ); + console.log(`Query as received in archive api:`); console.table(req.query); const title = req.query.title || '';