chore: remove ts-ignore comment

This commit is contained in:
Mar0xy 2023-09-24 22:57:05 +02:00
parent 8f997c39c9
commit ce42cc0e8d
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
1 changed files with 1 additions and 2 deletions

View File

@ -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);