mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 03:32:40 +00:00
fix deletion, update urls
This commit is contained in:
@@ -190,7 +190,7 @@ app.get('/user/:username', async (req, res, next)=>{
|
||||
});
|
||||
|
||||
for (const brew of brews) {
|
||||
const match = googleBrews.findIndex((b)=>b.editId === brew.editId);
|
||||
const match = googleBrews?.findIndex((b)=>b.editId === brew.editId) ?? -1;
|
||||
if(match !== -1) {
|
||||
brew.googleId = googleBrews[match].googleId;
|
||||
brew.stubbed = true;
|
||||
|
||||
Reference in New Issue
Block a user