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