From ce42cc0e8d4d25d7d47481a8d61ea6e7b9031fc1 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 24 Sep 2023 22:57:05 +0200 Subject: [PATCH] chore: remove ts-ignore comment --- .../src/server/api/mastodon/MastodonApiServerService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts index af3cefb30..f107c14d8 100644 --- a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts +++ b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts @@ -46,10 +46,9 @@ export class MastodonApiServerService { }); fastify.addContentTypeParser(['application/x-www-form-urlencoded'], { parseAs: 'string' }, (req, body, done) => { - const dataObj = {}; + const dataObj: any = {}; const parsedData = new URLSearchParams(body as string); for (let pair of parsedData.entries()) { - //@ts-expect-error dataObj[pair[0]] = pair[1]; } done(null, dataObj);