diff --git a/package.json b/package.json index de2b76e..9ca6454 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "avahooks", - "version": "1.0.1", + "version": "1.0.2", "main": "index.js", "scripts": { "start": "node ./dist/index.js", diff --git a/src/lib/downloadAvatarForPayload.ts b/src/lib/downloadAvatarForPayload.ts index 68424f5..7eb9fcf 100644 --- a/src/lib/downloadAvatarForPayload.ts +++ b/src/lib/downloadAvatarForPayload.ts @@ -10,7 +10,7 @@ export default async function downloadAvatarForPayload( let response = undefined, buf = undefined - for (let fmt in tryFmts) { + for (let fmt of tryFmts) { endpoint.searchParams.delete("format") if (fmt) endpoint.searchParams.append("format", fmt)