From bbad8434c4d91c6853e46eb37db1d0aef156f41e Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 26 Jun 2022 17:38:50 +0900 Subject: [PATCH] fix #8894 --- packages/backend/src/server/api/api-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/api-handler.ts b/packages/backend/src/server/api/api-handler.ts index d2d16597e..c22c868c8 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;