Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gcharang committed Aug 28, 2023
1 parent dcef6ec commit 0748664
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 1 deletion.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion utils/get_file_author_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function downloadImage(url, username) {
let filename;
https.get(url, options, (response) => {
const fileExt = response.headers["content-type"].split("/")[1]
filename = `./src/images/authors/${username}.${fileExt}`
filename = `./author-images/${username}.${fileExt}`
const file = fs.createWriteStream(filename);

response.pipe(file);
Expand Down

0 comments on commit 0748664

Please sign in to comment.