0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

Updated auth

This commit is contained in:
Michiel De Mey
2023-02-26 14:53:26 +01:00
parent 27ea00e9ce
commit a6ed05214a

View File

@@ -134,7 +134,7 @@ const GoogleActions = {
},
updateGoogleBrew : async (brew)=>{
const drive = drive({ version: 'v3' });
const drive = drive({ version: 'v3', auth: serviceAuth || config.get('google_api_key') });
await drive.files.update({
fileId : brew.googleId,
@@ -216,7 +216,7 @@ const GoogleActions = {
},
getGoogleBrew : async (id, accessId, accessType)=>{
const drive = drive({ version: 'v3' });
const drive = drive({ version: 'v3', auth: serviceAuth || config.get('google_api_key') });
const obj = await drive.files.get({
fileId : id,
@@ -298,7 +298,7 @@ const GoogleActions = {
},
increaseView : async (id, accessId, accessType, brew)=>{
const drive = drive({ version: 'v3' });
const drive = drive({ version: 'v3', auth: serviceAuth || config.get('google_api_key') });
await drive.files.update({
fileId : brew.googleId,