0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 14:12:40 +00:00

swap usage of delete on possible Mongoose object for setting the value to undefined

This commit is contained in:
Charlie Humphreys
2022-03-30 23:34:39 -05:00
parent 6791df7f75
commit e5021259bb

View File

@@ -183,7 +183,7 @@ const updateBrew = async (req, res)=>{
return;
}
delete brew.googleId;
brew.googleId = undefined;
} else if(!brew.googleId && transferToGoogle) {
brew.googleId = await newGoogleBrew(req.account, excludeGoogleProps(_.clone(brew)), res)
.catch((err)=>{