Skip to content

Commit

Permalink
fixed drive link formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Zhu authored and Charles Zhu committed Feb 15, 2024
1 parent 5774c74 commit 45076c0
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 45076c0

Please sign in to comment.