0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-02 02:02:43 +00:00
This commit is contained in:
Trevor Buckner
2024-12-18 17:23:38 -05:00
parent 6e8a0d7314
commit 5f14f656ef

View File

@@ -125,7 +125,7 @@ const api = {
// If there is a google id, try to find the google brew // If there is a google id, try to find the google brew
if(!stubOnly && googleId) { if(!stubOnly && googleId) {
const oAuth2Client = isOwner ? GoogleActions.authCheck(req.account, res) : undefined; const oAuth2Client = isOwner ? GoogleActions.authCheck(req.account, res) : undefined;
console.log(`user ${req.account?.username} attempting to get googlebrew ${googleId} as ${isOwner ? 'owner' : 'visitor'}`);
const googleBrew = await GoogleActions.getGoogleBrew(oAuth2Client, googleId, id, accessType) const googleBrew = await GoogleActions.getGoogleBrew(oAuth2Client, googleId, id, accessType)
.catch((googleError)=>{ .catch((googleError)=>{
const reason = googleError.errors?.[0].reason; const reason = googleError.errors?.[0].reason;