Skip to content

Commit

Permalink
fix: encode error
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Jun 4, 2024
1 parent 248a0b4 commit 85b0f6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adaptors/api/base/github/commonGithubApiAdaptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class CommonGithubApiAdaptor extends BaseBlogApi {
const base64 = Base64.fromUint8Array(bits)
const savePath = this.cfg.imageStorePath ?? "images"
const imageFullPath = StrUtil.pathJoin(savePath, mediaObject.name)
const res = await this.githubClient.publishGithubPage(imageFullPath, base64, "nase64")
const res = await this.githubClient.publishGithubPage(imageFullPath, base64, "base64")

const siteImgId = mediaObject.name
const siteArticleId = mediaObject.name
Expand Down Expand Up @@ -261,7 +261,7 @@ class CommonGithubApiAdaptor extends BaseBlogApi {
url: siteImgUrl,
}
} catch (e) {
this.logger.error("Error uploading image to gitlab:", e)
this.logger.error("Error uploading image to github:", e)
throw e
}
}
Expand Down

0 comments on commit 85b0f6f

Please sign in to comment.