From 46349208666324f5cda684cb04122f2732ebc950 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 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;