0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Fix recent links when transferring to Google Brews

This commit is contained in:
Trevor Buckner
2020-10-19 15:48:44 -04:00
parent fcb3f9ca26
commit d05b819ff2
6 changed files with 70 additions and 28 deletions

View File

@@ -224,7 +224,6 @@ GoogleActions = {
readFileMetadata : async (auth, id, accessId, accessType)=>{
const drive = google.drive({ version: 'v3', auth: auth });
console.log(auth);
const obj = await drive.files.get({
fileId : id,
@@ -236,8 +235,6 @@ GoogleActions = {
return;
});
console.log(`ACCESS TYPE: ${accessType}`);
if(obj) {
if(accessType == 'edit' && obj.data.properties.editId != accessId){
throw ('Edit ID does not match');