diff --git a/packages/backend/src/server/api/api-handler.ts b/packages/backend/src/server/api/api-handler.ts index d2d16597e1..c22c868c80 100644 --- a/packages/backend/src/server/api/api-handler.ts +++ b/packages/backend/src/server/api/api-handler.ts @@ -7,7 +7,7 @@ import { ApiError } from './error.js'; export default (endpoint: IEndpoint, ctx: Koa.Context) => new Promise((res) => { const body = ctx.is('multipart/form-data') - ? (ctx.req as any).body + ? (ctx.request as any).body : ctx.method === 'GET' ? ctx.query : ctx.request.body;