Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Fan-Yang-284 committed Oct 28, 2023
1 parent 7805802 commit f92e51c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/events/messageCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const convertResumePdfsIntoImages = async (
}

const fileMatch = pdfLink.match('[^/]*$') || ['Resume'];
// Remove url parameters by calling `.split(?)[0]`
const fileName = fileMatch[0].split('?')[0];
// Convert the resume pdf into image
const imgResponse = await convertPdfToPic(PDF_FILE_PATH, 'resume', width * 2, height * 2);
Expand Down

0 comments on commit f92e51c

Please sign in to comment.