0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 03:02:40 +00:00

simplify console log and remove unused code

This commit is contained in:
Víctor Losada Hernández
2024-05-14 09:36:59 +02:00
parent 9aa3ebe872
commit 153812c6e5

View File

@@ -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 || '';