chore: remove ts-ignore comment
This commit is contained in:
parent
8f997c39c9
commit
ce42cc0e8d
1 changed files with 1 additions and 2 deletions
|
@ -46,10 +46,9 @@ export class MastodonApiServerService {
|
||||||
});
|
});
|
||||||
|
|
||||||
fastify.addContentTypeParser(['application/x-www-form-urlencoded'], { parseAs: 'string' }, (req, body, done) => {
|
fastify.addContentTypeParser(['application/x-www-form-urlencoded'], { parseAs: 'string' }, (req, body, done) => {
|
||||||
const dataObj = {};
|
const dataObj: any = {};
|
||||||
const parsedData = new URLSearchParams(body as string);
|
const parsedData = new URLSearchParams(body as string);
|
||||||
for (let pair of parsedData.entries()) {
|
for (let pair of parsedData.entries()) {
|
||||||
//@ts-expect-error
|
|
||||||
dataObj[pair[0]] = pair[1];
|
dataObj[pair[0]] = pair[1];
|
||||||
}
|
}
|
||||||
done(null, dataObj);
|
done(null, dataObj);
|
||||||
|
|
Loading…
Reference in a new issue