Skip to content

Commit

Permalink
Merge pull request #44 from uclaacm/charles
Browse files Browse the repository at this point in the history
fixed drive link formatting
  • Loading branch information
snigdha-kansal authored May 31, 2024
2 parents 58ab4f1 + 45076c0 commit 393bae8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion getOfficers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ export default async function getOfficerData(
image = '/profile.png';
} else if (image.includes('drive.google.com')) {
const fileID = image.match(/\/file\/d\/(.+?)\//)[1];
image = `https://drive.google.com/uc?export=download&id=${fileID}`;
image = `https://drive.google.com/thumbnail?id=${fileID}&sz=s1000`;
}

// create officer
const officer = {
id: officerID,
Expand Down

0 comments on commit 393bae8

Please sign in to comment.