From 8f997c39c995e012edd54f139e4b8ac4750f659e Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 24 Sep 2023 22:54:51 +0200 Subject: [PATCH] chore: fix lint --- .../src/server/api/mastodon/MastodonApiServerService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts index 793eb30c8..af3cefb30 100644 --- a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts +++ b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts @@ -45,14 +45,14 @@ export class MastodonApiServerService { done(); }); - fastify.addContentTypeParser(['application/x-www-form-urlencoded'], { parseAs: 'string' }, function (req, body, done) { + fastify.addContentTypeParser(['application/x-www-form-urlencoded'], { parseAs: 'string' }, (req, body, done) => { const dataObj = {}; const parsedData = new URLSearchParams(body as string); - for (var pair of parsedData.entries()) { + for (let pair of parsedData.entries()) { //@ts-expect-error dataObj[pair[0]] = pair[1]; } - done(null, dataObj) + done(null, dataObj); }); fastify.register(multer.contentParser);