Compare commits

..

2 commits

Author SHA1 Message Date
May 7f9fc69285
chore: bump ver 2024-11-23 00:55:01 -08:00
May 82b9b03784
fix(forgejo): 🐛 ok. fixed 2024-11-23 00:54:35 -08:00
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{
"name": "avahooks",
"version": "1.3.0",
"version": "1.3.1",
"main": "index.js",
"scripts": {
"start": "node ./dist/index.js",

View file

@ -29,9 +29,9 @@ export default translator({
"Content-Type": "application/json",
},
body: JSON.stringify({
image: `data:${avatar.type};base64,${Buffer.from(
await avatar.arrayBuffer()
).toString("base64")}`,
image: Buffer.from(await avatar.arrayBuffer()).toString(
"base64"
),
}),
method: "POST",
}