From 1f7be696246b51739ca56d4a2999bff37f8bcd93 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Mon, 31 Oct 2022 17:43:41 +1300 Subject: [PATCH] Modify query to exclude Google brew stubs --- server/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/app.js b/server/app.js index 4586c7220..76cd3f8e3 100644 --- a/server/app.js +++ b/server/app.js @@ -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); });