0
0
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:
G.Ambatte
2025-11-10 06:04:10 +00:00
parent c2ceba2ff6
commit 35d93582d7

View File

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