0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 02:22:49 +00:00

remove migration in favor of as-edited approach

This commit is contained in:
Charlie Humphreys
2022-06-25 00:43:47 -05:00
parent 8ee832e633
commit c7cfa86205
5 changed files with 6 additions and 24 deletions

View File

@@ -180,7 +180,6 @@ const updateBrew = async (req, res)=>{
let afterSave = async ()=>true;
brew.text = mergeBrewText(brew);
brew.tags = updateBrew.tags;
if(brew.googleId && removeFromGoogle) {
// If the google id exists and we're removing it from google, set afterSave to delete the google brew and mark the brew's google id as undefined