0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-03 12:42:41 +00:00

Fix brews failing to sanitize on user page

This commit is contained in:
Trevor Buckner
2021-06-20 13:53:26 -04:00
parent 9d80f21ae7
commit 70832be810
2 changed files with 2 additions and 3 deletions

View File

@@ -22,7 +22,6 @@ const getBrewFromId = asyncHandler(async (id, accessType)=>{
brew = await GoogleActions.readFileMetadata(config.get('google_api_key'), googleId, id, accessType);
} else {
brew = await HomebrewModel.get(accessType == 'edit' ? { editId: id } : { shareId: id });
brew = brew.toObject();
}
brew = sanitizeBrew(brew, accessType === 'edit' ? false : true);