From 876e99bed073cc2bf10160dae57c51220022a061 Mon Sep 17 00:00:00 2001 From: split Date: Thu, 21 Nov 2024 20:05:00 -0800 Subject: [PATCH] fix: :ambulance: i got kwds mixed up --- package.json | 2 +- src/lib/downloadAvatarForPayload.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)