Skip to content

Commit

Permalink
fix: uploadImageFromUrl failed
Browse files Browse the repository at this point in the history
  • Loading branch information
fish.yu committed Apr 18, 2024
1 parent 6947512 commit eec5735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class Downloader {
const imageName = crypto.randomUUID() + suffix;
const imageUrl = `_images/${imageName}`;
// 上传到github
const result = await gh.writeFile(imageUrl, content, { encode: false });
const result = await this.gh.writeFile(imageUrl, content, { encode: false });
console.log('uploadImageFromUrl success:', result);
return `https://github.com/${imageUrl}`;
} catch (error) {
Expand Down

0 comments on commit eec5735

Please sign in to comment.