Skip to content

Commit

Permalink
Update fetcher.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SlavyanDesu authored Dec 31, 2020
1 parent 80709a2 commit f31baca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const fetchText = (url, options) => {
const uploadImages = (buffData, fileName) => {
return new Promise(async (resolve, reject) => {
const { ext } = await fromBuffer(buffData)
const filePath = `tools/${fileName}.${ext}`
const filePath = `temp/${fileName}.${ext}`
fs.writeFile(filePath, buffData, { encoding: 'base64' }, (err) => {
if (err) return reject(err)
console.log('Uploading image to telegra.ph server...')
Expand Down

0 comments on commit f31baca

Please sign in to comment.