0
0
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:
Charlie Humphreys
2022-05-25 03:03:43 +00:00
parent 7691e4d24e
commit 55c91217ab
5 changed files with 23 additions and 12 deletions

View File

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