Use personal auth if logged in via google.

This commit is contained in:
Trevor Buckner committed 2024-09-29 21:47:45 -04:00
1 parent ea656e5119
commit 8ab6a8599d
2 files changed
+14 -3

No files matched your search

+4 -2
View File
@@ -147,8 +147,10 @@ const GoogleActions = {
return brews;
},
updateGoogleBrew : async (brew)=>{
const drive = googleDrive.drive({ version: 'v3', auth: defaultAuth });
updateGoogleBrew : async (brew, auth = defaultAuth)=>{
const drive = googleDrive.drive({ version: 'v3', auth: auth });
console.log(auth == defaultAuth ? 'UPDATE w SERVICEACC' : 'UPDATE w USERACC')
await drive.files.update({
fileId : brew.googleId,