mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 16:22:44 +00:00
Modify query to exclude Google brew stubs
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user