diff --git a/server/app.js b/server/app.js index 637dfbf64..de51c8882 100644 --- a/server/app.js +++ b/server/app.js @@ -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 diff --git a/server/googleActions.js b/server/googleActions.js index 5a7bfca34..f713d54b6 100644 --- a/server/googleActions.js +++ b/server/googleActions.js @@ -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({