0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 15:32:40 +00:00

Cleanup of console logging

This commit is contained in:
David Bolack
2024-02-27 20:51:59 -06:00
parent 7384cdc241
commit 8f15887c03
7 changed files with 0 additions and 31 deletions

View File

@@ -286,9 +286,6 @@ app.get('/user/:username', async (req, res, next)=>{
//Edit Page
app.get('/edit/:id', asyncHandler(getBrew('edit')), async(req, res, next)=>{
req.brew = req.brew.toObject ? req.brew.toObject() : req.brew;
console.log('Load Edit');
console.log(req.brew);
console.log('Load Edit');
req.ogMeta = { ...defaultMetaTags,
title : req.brew.title || 'Untitled Brew',

View File

@@ -49,9 +49,6 @@ const splitTextStyleAndMetadata = (brew)=>{
};
const getUsersBrewThemes = async (username, id)=>{
console.log('getUsersBrewThemes');
console.log(username);
console.log(id);
const fields = [
'title',
'tags',
@@ -82,7 +79,6 @@ const getUsersBrewThemes = async (username, id)=>{
};
};
console.log('getUsersBrewThemes end');
return userThemes;
};
@@ -158,10 +154,6 @@ const api = {
throw { name: 'BrewLoad Error', message: 'Brew not found', status: 404, HBErrorCode: '05', accessType: accessType, brewId: id };
}
console.log(`print`);
console.log(accessType);
console.log(stub);
console.log(`print`);
const userID = accessType === 'edit' ? req.account.username : stub.authors[0];
// Clean up brew: fill in missing fields with defaults / fix old invalid values
@@ -173,11 +165,6 @@ const api = {
stub.userThemes = userThemes;
}
console.log('stub.userThemes');
console.log(stub.userThemes);
console.log(stub.userThemes);
console.log('stub.userThemes');
req.brew = stub ?? {};
next();
};