0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 19:02:38 +00:00

Go back to service account for brew updates

This commit is contained in:
Trevor Buckner
2024-10-01 12:17:30 -04:00
parent e7e35294c6
commit c33b44855a

View File

@@ -419,11 +419,11 @@ const api = {
}, },
updateGoogleBrew : async (account, brew, res, req)=>{ updateGoogleBrew : async (account, brew, res, req)=>{
let oAuth2Client; //let oAuth2Client;
if(account.googleId) //if(account.googleId)
oAuth2Client = GoogleActions.authCheck(account, res); // oAuth2Client = GoogleActions.authCheck(account, res);
return await GoogleActions.updateGoogleBrew(brew, oAuth2Client, req.ip); return await GoogleActions.updateGoogleBrew(brew, undefined, req.ip);
}, },
deleteGoogleBrew : async (account, id, editId, res)=>{ deleteGoogleBrew : async (account, id, editId, res)=>{