Compare commits
2 commits
98b5853a34
...
7f9fc69285
Author | SHA1 | Date | |
---|---|---|---|
May | 7f9fc69285 | ||
May | 82b9b03784 |
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "avahooks",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "node ./dist/index.js",
|
||||
|
|
|
@ -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",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue