0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

swap transferToGoogle to saveToGoogle in a spot I missed

This commit is contained in:
Charlie Humphreys
2022-05-14 04:19:36 +00:00
parent ac905ddf3f
commit 74d22a05d0

View File

@@ -132,7 +132,7 @@ const newGoogleBrew = async (account, brew, res)=>{
const newBrew = async (req, res)=>{
const brew = req.body;
const { transferToGoogle } = req.query;
const { saveToGoogle } = req.query;
delete brew.editId;
delete brew.shareId;
@@ -145,7 +145,7 @@ const newBrew = async (req, res)=>{
newHomebrew.shareId = nanoid(12);
let googleId, saved;
if(transferToGoogle) {
if(saveToGoogle) {
googleId = await newGoogleBrew(req.account, newHomebrew, res)
.catch((err)=>{
console.error(err);