mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 22:22:51 +09:00
fix #8894
This commit is contained in:
parent
744db4b5ed
commit
4634920866
@ -7,7 +7,7 @@ import { ApiError } from './error.js';
|
|||||||
|
|
||||||
export default (endpoint: IEndpoint, ctx: Koa.Context) => new Promise<void>((res) => {
|
export default (endpoint: IEndpoint, ctx: Koa.Context) => new Promise<void>((res) => {
|
||||||
const body = ctx.is('multipart/form-data')
|
const body = ctx.is('multipart/form-data')
|
||||||
? (ctx.req as any).body
|
? (ctx.request as any).body
|
||||||
: ctx.method === 'GET'
|
: ctx.method === 'GET'
|
||||||
? ctx.query
|
? ctx.query
|
||||||
: ctx.request.body;
|
: ctx.request.body;
|
||||||
|
Loading…
Reference in New Issue
Block a user