diff --git a/packages/backend/src/server/api/index.ts b/packages/backend/src/server/api/index.ts index bfbc6a3fef..ddcb9a8842 100644 --- a/packages/backend/src/server/api/index.ts +++ b/packages/backend/src/server/api/index.ts @@ -6,8 +6,7 @@ import Koa from "koa"; import Router from "@koa/router"; import multer from "@koa/multer"; import bodyParser from "koa-bodyparser"; -// @ts-ignore -import formidable from 'koa2-formidable' +const formidable = require('koa2-formidable') import cors from "@koa/cors"; import { apiMastodonCompatible } from './mastodon/ApiMastodonCompatibleService.js'; import { Instances, AccessTokens, Users } from "@/models/index.js";