0
0
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:
G.Ambatte
2022-10-31 17:43:41 +13:00
parent 6e069dc29d
commit 1f7be69624

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);
});