fix: 🚑 i got kwds mixed up
This commit is contained in:
parent
22af0306fa
commit
876e99bed0
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "avahooks",
|
"name": "avahooks",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ./dist/index.js",
|
"start": "node ./dist/index.js",
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default async function downloadAvatarForPayload(
|
||||||
let response = undefined,
|
let response = undefined,
|
||||||
buf = undefined
|
buf = undefined
|
||||||
|
|
||||||
for (let fmt in tryFmts) {
|
for (let fmt of tryFmts) {
|
||||||
endpoint.searchParams.delete("format")
|
endpoint.searchParams.delete("format")
|
||||||
if (fmt) endpoint.searchParams.append("format", fmt)
|
if (fmt) endpoint.searchParams.append("format", fmt)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue