0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 14:12: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 newBrew = async (req, res)=>{
const brew = req.body; const brew = req.body;
const { transferToGoogle } = req.query; const { saveToGoogle } = req.query;
delete brew.editId; delete brew.editId;
delete brew.shareId; delete brew.shareId;
@@ -145,7 +145,7 @@ const newBrew = async (req, res)=>{
newHomebrew.shareId = nanoid(12); newHomebrew.shareId = nanoid(12);
let googleId, saved; let googleId, saved;
if(transferToGoogle) { if(saveToGoogle) {
googleId = await newGoogleBrew(req.account, newHomebrew, res) googleId = await newGoogleBrew(req.account, newHomebrew, res)
.catch((err)=>{ .catch((err)=>{
console.error(err); console.error(err);