Use personal auth if logged in via google.
This commit is contained in:
1 parent
ea656e5119
commit
8ab6a8599d
2 files changed
+14
-3
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user