mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 14:02:41 +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)=>{
|
.catch((err)=>{
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user