mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 16:22:44 +00:00
Remove unnecessary async map function
This commit is contained in:
@@ -334,7 +334,7 @@ app.get('/user/:username', dbCheck, async (req, res, next)=>{
|
||||
}
|
||||
|
||||
//Remaining unstubbed google brews display current user as author
|
||||
googleBrews = googleBrews.map(async (brew)=>({ ...brew, authors: [req.account.username] }));
|
||||
googleBrews = googleBrews.map((brew)=>({ ...brew, authors: [req.account.username] }));
|
||||
brews = _.concat(brews, googleBrews);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user