mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-11 00:22:43 +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
|
//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);
|
brews = _.concat(brews, googleBrews);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user