mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 00:29:22 +09:00
Merge branch 'develop' into pr/13929
This commit is contained in:
commit
982cee4ea9
@ -67,10 +67,12 @@ export class APIClient {
|
|||||||
): Promise<SwitchCaseResponseType<E, P>> {
|
): Promise<SwitchCaseResponseType<E, P>> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let mediaType = 'application/json';
|
let mediaType = 'application/json';
|
||||||
|
// (autogenがバグったときのため、念の為nullチェックも行う)
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||||
if (this.assertSpecialEpReqType(endpoint) && endpointReqTypes[endpoint] != null) {
|
if (this.assertSpecialEpReqType(endpoint) && endpointReqTypes[endpoint] != null) {
|
||||||
mediaType = endpointReqTypes[endpoint];
|
mediaType = endpointReqTypes[endpoint];
|
||||||
}
|
}
|
||||||
|
|
||||||
let payload: FormData | string = '{}';
|
let payload: FormData | string = '{}';
|
||||||
|
|
||||||
if (mediaType === 'application/json') {
|
if (mediaType === 'application/json') {
|
||||||
|
Loading…
Reference in New Issue
Block a user