mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 10:02:43 +00:00
simplify console log and remove unused code
This commit is contained in:
@@ -6,21 +6,7 @@ const archive = {
|
|||||||
/* Searches for matching title, also attempts to partial match */
|
/* Searches for matching title, also attempts to partial match */
|
||||||
findBrews: async (req, res, next) => {
|
findBrews: async (req, res, next) => {
|
||||||
try {
|
try {
|
||||||
/*
|
console.log(`Query as received in archive api:`);
|
||||||
//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.table(req.query);
|
console.table(req.query);
|
||||||
|
|
||||||
const title = req.query.title || '';
|
const title = req.query.title || '';
|
||||||
|
|||||||
Reference in New Issue
Block a user