mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 05:47:02 +00:00
Remove unnecessary async map function
This commit is contained in:
1 parent
c2ceba2ff6
commit
35d93582d7
1 file changed
+1
-1
+1
-1
@@ -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