From 6d4b1843ae2fffbab2ae53a7ca94e2478e553ea2 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Sat, 12 Oct 2024 00:10:43 -0400 Subject: [PATCH] Fix missed lines from 3.15.2 branch --- server/googleActions.js | 5 ++--- server/homebrew.api.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/server/googleActions.js b/server/googleActions.js index e884e1515..bc97551ee 100644 --- a/server/googleActions.js +++ b/server/googleActions.js @@ -154,9 +154,8 @@ const GoogleActions = { return brews; }, - updateGoogleBrew : async (brew, auth = defaultAuth, userIp)=>{ - const drive = googleDrive.drive({ version: 'v3', auth: auth }); - console.log(auth == defaultAuth ? 'UPDATE w SERVICEACC' : 'UPDATE w USERACC') + updateGoogleBrew : async (brew, userIp)=>{ + const drive = googleDrive.drive({ version: 'v3', auth: defaultAuth }); await drive.files.update({ fileId : brew.googleId, diff --git a/server/homebrew.api.js b/server/homebrew.api.js index 22e2cee7b..213b341ca 100644 --- a/server/homebrew.api.js +++ b/server/homebrew.api.js @@ -353,7 +353,7 @@ const api = { if(!brew.googleId) return; } else if(brew.googleId) { // If the google id exists and no other actions are being performed, update the google brew - const updated = await GoogleActions.updateGoogleBrew(api.excludeGoogleProps(brew)); + const updated = await GoogleActions.updateGoogleBrew(api.excludeGoogleProps(brew), req.ip); if(!updated) return; }