update readFileMetadata to be getGoogleBrew

This commit is contained in:
Charlie Humphreys committed 2022-02-16 21:51:14 -06:00
1 parent 927345b131
commit 7cc7bd4786
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ const getBrewFromId = asyncHandler(async (id, accessType)=>{
if(id.length > 12) {
const googleId = id.slice(0, -12);
id = id.slice(-12);
brew = await GoogleActions.readFileMetadata(googleId, id, accessType);
brew = await GoogleActions.getGoogleBrew(googleId, id, accessType);
} else {
brew = await HomebrewModel.get(accessType == 'edit' ? { editId: id } : { shareId: id });
brew = brew.toObject(); // Convert MongoDB object to standard Javascript Object
+1 -1
View File
@@ -233,7 +233,7 @@ const GoogleActions = {
return newHomebrew;
},
readFileMetadata : async (id, accessId, accessType)=>{
getGoogleBrew : async (id, accessId, accessType)=>{
const drive = google.drive({ version: 'v3' });
const obj = await drive.files.get({