0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 14:12:40 +00:00

Merge pull request #2479 from G-Ambatte/excludeGoogleStubsFromAccountPage

[AccountPage] Modify query to exclude Google brew stubs
This commit is contained in:
Trevor Buckner
2022-10-31 22:37:40 -04:00
committed by GitHub

View File

@@ -289,7 +289,8 @@ app.get('/account', asyncHandler(async (req, res, next)=>{
}
}
const brews = await HomebrewModel.getByUser(req.account.username, true, 'id')
const query = { authors: req.account.username, googleId: { $exists: false } };
const brews = await HomebrewModel.find(query, 'id')
.catch((err)=>{
console.log(err);
});